diff options
author | Frederic Riss <friss@apple.com> | 2015-05-29 18:14:55 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2015-05-29 18:14:55 +0000 |
commit | 3733c03d3b18f9ce8166933612590b25fde1b31a (patch) | |
tree | f447be6f2f46362494a4cda9b85ab06c1f02c7fc /llvm/unittests/Support | |
parent | ea09c99a4cf0c8d23c76079cb93b5a2a2ae71a5f (diff) | |
download | bcm5719-llvm-3733c03d3b18f9ce8166933612590b25fde1b31a.tar.gz bcm5719-llvm-3733c03d3b18f9ce8166933612590b25fde1b31a.zip |
YAML traits need to be in the llvm::yaml namespace.
Hope this fixes the bits, eg:
http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/27147
llvm-svn: 238586
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r-- | llvm/unittests/Support/YAMLIOTest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/unittests/Support/YAMLIOTest.cpp b/llvm/unittests/Support/YAMLIOTest.cpp index f519516aa68..e7affa1698d 100644 --- a/llvm/unittests/Support/YAMLIOTest.cpp +++ b/llvm/unittests/Support/YAMLIOTest.cpp @@ -2081,6 +2081,12 @@ struct FlowMap { : str1(str1), str2(str2), str3(str3) {} }; +struct FlowSeq { + llvm::StringRef str; + FlowSeq(llvm::StringRef S) : str(S) {} + FlowSeq() = default; +}; + namespace llvm { namespace yaml { template <> @@ -2093,14 +2099,6 @@ namespace yaml { static const bool flow = true; }; -} -} - -struct FlowSeq { - llvm::StringRef str; - FlowSeq(llvm::StringRef S) : str(S) {} - FlowSeq() = default; -}; template <> struct ScalarTraits<FlowSeq> { @@ -2114,6 +2112,8 @@ struct ScalarTraits<FlowSeq> { static bool mustQuote(StringRef S) { return false; } }; +} +} LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(FlowSeq) |