From dbc97f38e7a0efe5b98628b4a71437e7e07c23dc Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 26 Oct 2016 04:26:53 +0000 Subject: [PATCH] [XRay] Move specialisations into correct namespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285168 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-xray/xray-extract.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/llvm-xray/xray-extract.cc b/tools/llvm-xray/xray-extract.cc index 34bda48c751..c2c51062075 100644 --- a/tools/llvm-xray/xray-extract.cc +++ b/tools/llvm-xray/xray-extract.cc @@ -58,6 +58,9 @@ struct YAMLXRaySledEntry { bool AlwaysInstrument; }; +namespace llvm { +namespace yaml { + template <> struct ScalarEnumerationTraits { static void enumeration(IO &IO, SledEntry::FunctionKinds &Kind) { IO.enumCase(Kind, "function-enter", SledEntry::FunctionKinds::ENTRY); @@ -78,6 +81,9 @@ template <> struct MappingTraits { static constexpr bool flow = true; }; +} +} + LLVM_YAML_IS_SEQUENCE_VECTOR(YAMLXRaySledEntry) namespace { -- 2.11.0