1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[XRay] Move specialisations into correct namespace

llvm-svn: 285168
This commit is contained in:
Dean Michael Berris 2016-10-26 04:26:53 +00:00
parent 365d976d22
commit 109504e105

View File

@ -58,6 +58,9 @@ struct YAMLXRaySledEntry {
bool AlwaysInstrument; bool AlwaysInstrument;
}; };
namespace llvm {
namespace yaml {
template <> struct ScalarEnumerationTraits<SledEntry::FunctionKinds> { template <> struct ScalarEnumerationTraits<SledEntry::FunctionKinds> {
static void enumeration(IO &IO, SledEntry::FunctionKinds &Kind) { static void enumeration(IO &IO, SledEntry::FunctionKinds &Kind) {
IO.enumCase(Kind, "function-enter", SledEntry::FunctionKinds::ENTRY); IO.enumCase(Kind, "function-enter", SledEntry::FunctionKinds::ENTRY);
@ -78,6 +81,9 @@ template <> struct MappingTraits<YAMLXRaySledEntry> {
static constexpr bool flow = true; static constexpr bool flow = true;
}; };
}
}
LLVM_YAML_IS_SEQUENCE_VECTOR(YAMLXRaySledEntry) LLVM_YAML_IS_SEQUENCE_VECTOR(YAMLXRaySledEntry)
namespace { namespace {