Commit 3af14421 authored by David Blaikie's avatar David Blaikie
Browse files

llvm-dwarfdump: support for emitting only the debug_types section using -debug-dump

llvm-svn: 195063
parent 265134c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
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:
+1 −0
Original line number Diff line number Diff line
@@ -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"),