[llvm] r238586 - YAML traits need to be in the llvm::yaml namespace.

Frederic Riss friss at apple.com
Fri May 29 11:14:55 PDT 2015


Author: friss
Date: Fri May 29 13:14:55 2015
New Revision: 238586

URL: http://llvm.org/viewvc/llvm-project?rev=238586&view=rev
Log:
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

Modified:
    llvm/trunk/unittests/Support/YAMLIOTest.cpp

Modified: llvm/trunk/unittests/Support/YAMLIOTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/YAMLIOTest.cpp?rev=238586&r1=238585&r2=238586&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/YAMLIOTest.cpp (original)
+++ llvm/trunk/unittests/Support/YAMLIOTest.cpp Fri May 29 13:14:55 2015
@@ -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)
 





More information about the llvm-commits mailing list