llvm.org GIT mirror llvm / c19200c
[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 Chris Bieneman 2 years ago
3 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
558558
559559 void MappingTraits::mapping(
560560 IO &IO, MachOYAML::DWARFData &DWARF) {
561 IO.mapOptional("DebugStrings", DWARF.DebugStrings);
562 IO.mapOptional("AbbrevDecls", DWARF.AbbrevDecls);
561 IO.mapOptional("debug_str", DWARF.DebugStrings);
562 IO.mapOptional("debug_abbrev", DWARF.AbbrevDecls);
563563 }
564564
565565 void MappingTraits::mapping(
285285 reserved2: 0x00000000
286286 reserved3: 0x00000000
287287 DWARF:
288 AbbrevDecls:
288 debug_abbrev:
289289 - Code: 0x00000001
290290 Tag: DW_TAG_compile_unit
291291 Children: DW_CHILDREN_yes
359359 ...
360360
361361 #CHECK: DWARF:
362 #CHECK: AbbrevDecls:
362 #CHECK: debug_abbrev:
363363 #CHECK: - Code: 0x00000001
364364 #CHECK: Tag: DW_TAG_compile_unit
365365 #CHECK: Children: DW_CHILDREN_yes
239239 - __mh_execute_header
240240 - _main
241241 DWARF:
242 DebugStrings:
242 debug_str:
243243 - ''
244244 - 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
245245 - hello_world.c
252252 ...
253253
254254 #CHECK: DWARF:
255 #CHECK: DebugStrings:
255 #CHECK: debug_str:
256256 #CHECK: - ''
257257 #CHECK: - 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
258258 #CHECK: - hello_world.c