Skip to content

Commit

Permalink
[XRay] Move specialisations into correct namespace
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285168 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
deanberris committed Oct 26, 2016
1 parent 07792fb commit dbc97f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/llvm-xray/xray-extract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -78,6 +81,9 @@ template <> struct MappingTraits<YAMLXRaySledEntry> {
static constexpr bool flow = true;
};

}
}

LLVM_YAML_IS_SEQUENCE_VECTOR(YAMLXRaySledEntry)

namespace {
Expand Down

0 comments on commit dbc97f3

Please sign in to comment.