1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

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
This commit is contained in:
Frederic Riss 2015-05-29 18:14:55 +00:00
parent 9f6be643e9
commit bb8e58f100

View File

@ -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)