This change makes the yaml tags for the members of the DWARF data match the names of the DWARF sections.
llvm-svn: 288981
void MappingTraits<MachOYAML::DWARFData>::mapping(
IO &IO, MachOYAML::DWARFData &DWARF) {
- IO.mapOptional("DebugStrings", DWARF.DebugStrings);
- IO.mapOptional("AbbrevDecls", DWARF.AbbrevDecls);
+ IO.mapOptional("debug_str", DWARF.DebugStrings);
+ IO.mapOptional("debug_abbrev", DWARF.AbbrevDecls);
}
void MappingTraits<MachOYAML::DWARFAbbrev>::mapping(
reserved2: 0x00000000
reserved3: 0x00000000
DWARF:
- AbbrevDecls:
+ debug_abbrev:
- Code: 0x00000001
Tag: DW_TAG_compile_unit
Children: DW_CHILDREN_yes
...
#CHECK: DWARF:
-#CHECK: AbbrevDecls:
+#CHECK: debug_abbrev:
#CHECK: - Code: 0x00000001
#CHECK: Tag: DW_TAG_compile_unit
#CHECK: Children: DW_CHILDREN_yes
- __mh_execute_header
- _main
DWARF:
- DebugStrings:
+ debug_str:
- ''
- 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
- hello_world.c
...
#CHECK: DWARF:
-#CHECK: DebugStrings:
+#CHECK: debug_str:
#CHECK: - ''
#CHECK: - 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
#CHECK: - hello_world.c