Skip to content

Commit

Permalink
[ObjectYAML] Rename DWARF entries to match section names
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Bieneman committed Dec 7, 2016
1 parent 06bfcf3 commit c19200c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/ObjectYAML/MachOYAML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ LoadCommands:
reserved2: 0x00000000
reserved3: 0x00000000
DWARF:
AbbrevDecls:
debug_abbrev:
- Code: 0x00000001
Tag: DW_TAG_compile_unit
Children: DW_CHILDREN_yes
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/ObjectYAML/MachO/DWARF-debug_str.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c19200c

Please sign in to comment.