summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-xray
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2016-10-26 04:26:53 +0000
committerDean Michael Berris <dberris@google.com>2016-10-26 04:26:53 +0000
commit2661f257812474cebe1baf4aaced457017c5d8fc (patch)
tree803aa4109eca750f32b35f2a772116cd82320c05 /llvm/tools/llvm-xray
parentb278c216291653223aa9a922337d8727336eca3d (diff)
downloadbcm5719-llvm-2661f257812474cebe1baf4aaced457017c5d8fc.tar.gz
bcm5719-llvm-2661f257812474cebe1baf4aaced457017c5d8fc.zip
[XRay] Move specialisations into correct namespace
llvm-svn: 285168
Diffstat (limited to 'llvm/tools/llvm-xray')
-rw-r--r--llvm/tools/llvm-xray/xray-extract.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-xray/xray-extract.cc b/llvm/tools/llvm-xray/xray-extract.cc
index 34bda48c751..c2c51062075 100644
--- a/llvm/tools/llvm-xray/xray-extract.cc
+++ b/llvm/tools/llvm-xray/xray-extract.cc
@@ -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<YAMLXRaySledEntry> {
static constexpr bool flow = true;
};
+}
+}
+
LLVM_YAML_IS_SEQUENCE_VECTOR(YAMLXRaySledEntry)
namespace {
OpenPOWER on IntegriCloud