OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07792fb
)
[XRay] Move specialisations into correct namespace
author
Dean Michael Berris
<dberris@google.com>
Wed, 26 Oct 2016 04:26:53 +0000
(
04:26
+0000)
committer
Dean Michael Berris
<dberris@google.com>
Wed, 26 Oct 2016 04:26:53 +0000
(
04:26
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285168
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-xray/xray-extract.cc
patch
|
blob
|
history
diff --git
a/tools/llvm-xray/xray-extract.cc
b/tools/llvm-xray/xray-extract.cc
index
34bda48
..
c2c5106
100644
(file)
--- 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<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 {