[llvm] r288981 - [ObjectYAML] Rename DWARF entries to match section names
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 13:09:38 PST 2016
Author: cbieneman
Date: Wed Dec 7 15:09:37 2016
New Revision: 288981
URL: http://llvm.org/viewvc/llvm-project?rev=288981&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/ObjectYAML/MachOYAML.cpp
llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml
llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_str.yaml
Modified: llvm/trunk/lib/ObjectYAML/MachOYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ObjectYAML/MachOYAML.cpp?rev=288981&r1=288980&r2=288981&view=diff
==============================================================================
--- llvm/trunk/lib/ObjectYAML/MachOYAML.cpp (original)
+++ llvm/trunk/lib/ObjectYAML/MachOYAML.cpp Wed Dec 7 15:09:37 2016
@@ -559,8 +559,8 @@ void MappingTraits<MachO::version_min_co
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(
Modified: llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml?rev=288981&r1=288980&r2=288981&view=diff
==============================================================================
--- llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml (original)
+++ llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml Wed Dec 7 15:09:37 2016
@@ -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
Modified: llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_str.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_str.yaml?rev=288981&r1=288980&r2=288981&view=diff
==============================================================================
--- llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_str.yaml (original)
+++ llvm/trunk/test/ObjectYAML/MachO/DWARF-debug_str.yaml Wed Dec 7 15:09:37 2016
@@ -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
More information about the llvm-commits
mailing list