Skip to content

Commit fffd6da

Browse files
committed
[lldb][yaml2machocore] Give explicit namespace for compile err
A couple of the ubuntu CI bots failed to compile saying that MappingTraits was unqualified despite a `using llvm::yaml::MappingTraits` earlier in the file. For PR #153911
1 parent 57782ef commit fffd6da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/tools/yaml2macho-core/CoreSpec.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using llvm::yaml::Input;
1616
using llvm::yaml::IO;
1717
using llvm::yaml::MappingTraits;
1818

19-
template <> struct MappingTraits<RegisterNameAndValue> {
19+
template <> struct llvm::yaml::MappingTraits<RegisterNameAndValue> {
2020
static void mapping(IO &io, RegisterNameAndValue &name_value) {
2121
io.mapRequired("name", name_value.name);
2222
io.mapRequired("value", name_value.value);
@@ -32,22 +32,22 @@ template <> struct llvm::yaml::ScalarEnumerationTraits<RegisterFlavor> {
3232
}
3333
};
3434

35-
template <> struct MappingTraits<RegisterSet> {
35+
template <> struct llvm::yaml::MappingTraits<RegisterSet> {
3636
static void mapping(IO &io, RegisterSet &regset) {
3737
io.mapRequired("flavor", regset.flavor);
3838
io.mapRequired("registers", regset.registers);
3939
}
4040
};
4141
LLVM_YAML_IS_SEQUENCE_VECTOR(RegisterSet)
4242

43-
template <> struct MappingTraits<Thread> {
43+
template <> struct llvm::yaml::MappingTraits<Thread> {
4444
static void mapping(IO &io, Thread &thread) {
4545
io.mapRequired("regsets", thread.regsets);
4646
}
4747
};
4848
LLVM_YAML_IS_SEQUENCE_VECTOR(Thread)
4949

50-
template <> struct MappingTraits<MemoryRegion> {
50+
template <> struct llvm::yaml::MappingTraits<MemoryRegion> {
5151
static void mapping(IO &io, MemoryRegion &memory) {
5252
io.mapRequired("addr", memory.addr);
5353
io.mapOptional("UInt8", memory.bytes);
@@ -68,7 +68,7 @@ template <> struct MappingTraits<MemoryRegion> {
6868
};
6969
LLVM_YAML_IS_SEQUENCE_VECTOR(MemoryRegion)
7070

71-
template <> struct MappingTraits<Binary> {
71+
template <> struct llvm::yaml::MappingTraits<Binary> {
7272
static void mapping(IO &io, Binary &binary) {
7373
io.mapOptional("name", binary.name);
7474
io.mapRequired("uuid", binary.uuid);
@@ -105,7 +105,7 @@ template <> struct llvm::yaml::MappingTraits<AddressableBits> {
105105
}
106106
};
107107

108-
template <> struct MappingTraits<CoreSpec> {
108+
template <> struct llvm::yaml::MappingTraits<CoreSpec> {
109109
static void mapping(IO &io, CoreSpec &corespec) {
110110
std::string cpuname;
111111
io.mapRequired("cpu", cpuname);

0 commit comments

Comments
 (0)