diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-18 17:49:27 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-18 17:49:27 +0000 |
commit | 5486d2472cf35afb4794a1244f25d6bd2d899f8e (patch) | |
tree | 26927745a859c769190818517275768be2d24ee8 /lld/lib/ReaderWriter | |
parent | b213b27ee3cba7d0b7ad2a45c8cbd42e59510220 (diff) | |
download | bcm5719-llvm-5486d2472cf35afb4794a1244f25d6bd2d899f8e.tar.gz bcm5719-llvm-5486d2472cf35afb4794a1244f25d6bd2d899f8e.zip |
[YAML] Fix mustQuote return type changed in r320996
llvm-svn: 320997
Diffstat (limited to 'lld/lib/ReaderWriter')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp | 6 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp index 2cce18fd635..92a646dab5e 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp @@ -257,7 +257,7 @@ template <> struct ScalarTraits<SectionAlignment> { return StringRef(); // returning empty string means success } - static bool mustQuote(StringRef) { return false; } + static QuotingType mustQuote(StringRef) { return QuotingType::None; } }; template <> @@ -522,7 +522,7 @@ struct ScalarTraits<VMProtect> { // Return the empty string on success, return StringRef(); } - static bool mustQuote(StringRef) { return false; } + static QuotingType mustQuote(StringRef) { return QuotingType::None; } }; @@ -706,7 +706,7 @@ struct ScalarTraits<PackedVersion> { // Return the empty string on success, return StringRef(); } - static bool mustQuote(StringRef) { return false; } + static QuotingType mustQuote(StringRef) { return QuotingType::None; } }; template <> diff --git a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp index 4c88eb1d147..59548684e67 100644 --- a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp +++ b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp @@ -280,7 +280,7 @@ template <> struct ScalarTraits<RefKind> { return StringRef("unknown reference kind"); } - static bool mustQuote(StringRef) { return false; } + static QuotingType mustQuote(StringRef) { return QuotingType::None; } }; template <> struct ScalarEnumerationTraits<lld::File::Kind> { @@ -495,7 +495,7 @@ template <> struct ScalarTraits<lld::DefinedAtom::Alignment> { return StringRef(); // returning empty string means success } - static bool mustQuote(StringRef) { return false; } + static QuotingType mustQuote(StringRef) { return QuotingType::None; } }; template <> struct ScalarEnumerationTraits<FileKinds> { @@ -552,7 +552,7 @@ template <> struct ScalarTraits<ImplicitHex8> { return StringRef(); // returning empty string means success } - static bool mustQuote(StringRef) { return false; } + static QuotingType mustQuote(StringRef) { return QuotingType::None; } }; // YAML conversion for std::vector<const lld::File*> |