mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
YAML traits need to be in the llvm::yaml namespace.
Hope this fixes the bits, eg: http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/27147 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9282af9d6c
commit
2368d54c07
@ -2081,6 +2081,12 @@ struct FlowMap {
|
|||||||
: str1(str1), str2(str2), str3(str3) {}
|
: str1(str1), str2(str2), str3(str3) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct FlowSeq {
|
||||||
|
llvm::StringRef str;
|
||||||
|
FlowSeq(llvm::StringRef S) : str(S) {}
|
||||||
|
FlowSeq() = default;
|
||||||
|
};
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
namespace yaml {
|
namespace yaml {
|
||||||
template <>
|
template <>
|
||||||
@ -2093,14 +2099,6 @@ namespace yaml {
|
|||||||
|
|
||||||
static const bool flow = true;
|
static const bool flow = true;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct FlowSeq {
|
|
||||||
llvm::StringRef str;
|
|
||||||
FlowSeq(llvm::StringRef S) : str(S) {}
|
|
||||||
FlowSeq() = default;
|
|
||||||
};
|
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct ScalarTraits<FlowSeq> {
|
struct ScalarTraits<FlowSeq> {
|
||||||
@ -2114,6 +2112,8 @@ struct ScalarTraits<FlowSeq> {
|
|||||||
|
|
||||||
static bool mustQuote(StringRef S) { return false; }
|
static bool mustQuote(StringRef S) { return false; }
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(FlowSeq)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(FlowSeq)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user