[llvm] r285168 - [XRay] Move specialisations into correct namespace
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 21:26:54 PDT 2016
Author: dberris
Date: Tue Oct 25 23:26:53 2016
New Revision: 285168
URL: http://llvm.org/viewvc/llvm-project?rev=285168&view=rev
Log:
[XRay] Move specialisations into correct namespace
Modified:
llvm/trunk/tools/llvm-xray/xray-extract.cc
Modified: llvm/trunk/tools/llvm-xray/xray-extract.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-extract.cc?rev=285168&r1=285167&r2=285168&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-extract.cc (original)
+++ llvm/trunk/tools/llvm-xray/xray-extract.cc Tue Oct 25 23:26:53 2016
@@ -58,6 +58,9 @@ struct YAMLXRaySledEntry {
bool AlwaysInstrument;
};
+namespace llvm {
+namespace yaml {
+
template <> struct ScalarEnumerationTraits<SledEntry::FunctionKinds> {
static void enumeration(IO &IO, SledEntry::FunctionKinds &Kind) {
IO.enumCase(Kind, "function-enter", SledEntry::FunctionKinds::ENTRY);
@@ -78,6 +81,9 @@ template <> struct MappingTraits<YAMLXRa
static constexpr bool flow = true;
};
+}
+}
+
LLVM_YAML_IS_SEQUENCE_VECTOR(YAMLXRaySledEntry)
namespace {
More information about the llvm-commits
mailing list