From: Chris Bieneman Date: Wed, 7 Dec 2016 21:09:37 +0000 (+0000) Subject: [ObjectYAML] Rename DWARF entries to match section names X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c19200ceed91caf70d2bcfbbf43158787b4bb3f8;p=llvm [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 --- diff --git a/lib/ObjectYAML/MachOYAML.cpp b/lib/ObjectYAML/MachOYAML.cpp index 45554304d10..41bbf9d0571 100644 --- a/lib/ObjectYAML/MachOYAML.cpp +++ b/lib/ObjectYAML/MachOYAML.cpp @@ -559,8 +559,8 @@ void MappingTraits::mapping( void MappingTraits::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::mapping( diff --git a/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml b/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml index b874c27612a..07365148bb8 100644 --- a/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml +++ b/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml @@ -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 diff --git a/test/ObjectYAML/MachO/DWARF-debug_str.yaml b/test/ObjectYAML/MachO/DWARF-debug_str.yaml index c0557bc7eef..417a755642b 100644 --- a/test/ObjectYAML/MachO/DWARF-debug_str.yaml +++ b/test/ObjectYAML/MachO/DWARF-debug_str.yaml @@ -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