diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-11-19 00:29:42 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-11-19 00:29:42 +0000 |
commit | 26efdc5621043d28dc0c78addc7b7a75d1591a10 (patch) | |
tree | d045c4cc9b5e3dc4cf763949fa4265c7c4686284 | |
parent | 8da7540802d67336892deeac3385442e0400333c (diff) | |
download | external_llvm-26efdc5621043d28dc0c78addc7b7a75d1591a10.zip external_llvm-26efdc5621043d28dc0c78addc7b7a75d1591a10.tar.gz external_llvm-26efdc5621043d28dc0c78addc7b7a75d1591a10.tar.bz2 |
llvm-dwarfdump: support for emitting only the debug_types section using -debug-dump
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195063 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/DebugInfo/dwarfdump-type-units.test | 4 | ||||
-rw-r--r-- | tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/DebugInfo/dwarfdump-type-units.test b/test/DebugInfo/dwarfdump-type-units.test index 311a77a..5fca81d 100644 --- a/test/DebugInfo/dwarfdump-type-units.test +++ b/test/DebugInfo/dwarfdump-type-units.test @@ -1,6 +1,7 @@ RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 > %t RUN: cat %t | FileCheck -check-prefix=FOO %s RUN: cat %t | FileCheck -check-prefix=BAR %s +RUN: llvm-dwarfdump -debug-dump=types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s FOO: debug_info contents: FOO: DW_TAG_variable @@ -26,3 +27,6 @@ BAR: DW_TAG_type_unit BAR-NOT: NULL BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type BAR-NEXT: DW_AT_name {{.*}}"bar" + +TYPES-NOT: debug_info contents: +TYPES: debug_types contents: diff --git a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index c46bd6b..413a50b 100644 --- a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -62,6 +62,7 @@ DumpType("debug-dump", cl::init(DIDT_All), clEnumValN(DIDT_Aranges, "aranges", ".debug_aranges"), clEnumValN(DIDT_Info, "info", ".debug_info"), clEnumValN(DIDT_InfoDwo, "info.dwo", ".debug_info.dwo"), + clEnumValN(DIDT_Types, "types", ".debug_types"), clEnumValN(DIDT_Line, "line", ".debug_line"), clEnumValN(DIDT_Loc, "loc", ".debug_loc"), clEnumValN(DIDT_Frames, "frames", ".debug_frame"), |