[ObjectYAML] Rename DWARF entries to match section names

This change makes the yaml tags for the members of the DWARF data match the names of the DWARF sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Bieneman
2016-12-07 21:09:37 +00:00
parent 06bfcf3df9
commit c19200ceed
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -559,8 +559,8 @@ void MappingTraits<MachO::version_min_command>::mapping(
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(
@@ -286,7 +286,7 @@ LoadCommands:
reserved2: 0x00000000
reserved3: 0x00000000
DWARF:
AbbrevDecls:
debug_abbrev:
- Code: 0x00000001
Tag: DW_TAG_compile_unit
Children: DW_CHILDREN_yes
@@ -360,7 +360,7 @@ DWARF:
...
#CHECK: DWARF:
#CHECK: AbbrevDecls:
#CHECK: debug_abbrev:
#CHECK: - Code: 0x00000001
#CHECK: Tag: DW_TAG_compile_unit
#CHECK: Children: DW_CHILDREN_yes
+2 -2
View File
@@ -240,7 +240,7 @@ LinkEditData:
- __mh_execute_header
- _main
DWARF:
DebugStrings:
debug_str:
- ''
- 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
- hello_world.c
@@ -253,7 +253,7 @@ DWARF:
...
#CHECK: DWARF:
#CHECK: DebugStrings:
#CHECK: debug_str:
#CHECK: - ''
#CHECK: - 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
#CHECK: - hello_world.c