diff --git a/llvm/projects/tapi/lib/Core/YAML.cpp b/llvm/projects/tapi/lib/Core/YAML.cpp index 74a036c559d1cf..6cf0c0d8aa1a71 100644 --- a/llvm/projects/tapi/lib/Core/YAML.cpp +++ b/llvm/projects/tapi/lib/Core/YAML.cpp @@ -17,19 +17,6 @@ namespace llvm { namespace yaml { -using Impl = ScalarTraits; -void ScalarTraits::output(const FlowStringRef &value, void *ctx, - raw_ostream &os) { - Impl::output(value, ctx, os); -} -StringRef ScalarTraits::input(StringRef value, void *ctx, - FlowStringRef &out) { - return Impl::input(value, ctx, out.value); -} -QuotingType ScalarTraits::mustQuote(StringRef name) { - return Impl::mustQuote(name); -} - using tapi::ObjCConstraint; void ScalarEnumerationTraits::enumeration( IO &io, ObjCConstraint &constraint) { @@ -99,46 +86,6 @@ QuotingType ScalarTraits::mustQuote(StringRef) { return QuotingType::None; } -void ScalarTraits::output(const SwiftVersion &value, void *, - raw_ostream &os) { - switch (value) { - case 1: - os << "1.0"; - break; - case 2: - os << "1.1"; - break; - case 3: - os << "2.0"; - break; - case 4: - os << "3.0"; - break; - default: - os << (unsigned)value; - break; - } -} -StringRef ScalarTraits::input(StringRef scalar, void *, - SwiftVersion &value) { - value = StringSwitch(scalar) - .Case("1.0", 1) - .Case("1.1", 2) - .Case("2.0", 3) - .Case("3.0", 4) - .Default(0); - if (value != SwiftVersion(0)) - return {}; - - if (scalar.getAsInteger(10, value)) - return "invalid Swift ABI version."; - - return StringRef(); -} -QuotingType ScalarTraits::mustQuote(StringRef) { - return QuotingType::None; -} - using TAPI_INTERNAL::AvailabilityInfo; void ScalarTraits::output(const AvailabilityInfo &value, void *, raw_ostream &os) {