1 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 > %t 2 RUN: cat %t | FileCheck -check-prefix=FOO %s 3 RUN: cat %t | FileCheck -check-prefix=BAR %s 4 RUN: llvm-dwarfdump -debug-dump=types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s 5 6 FOO: debug_info contents: 7 FOO: DW_TAG_variable 8 FOO-NEXT: DW_AT_name {{.*}}"f" 9 FOO: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]]) 10 11 FOO: debug_types contents: 12 FOO: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at 13 FOO: DW_TAG_type_unit 14 FOO-NOT: NULL 15 FOO: 0x0000[[FOO_OFF]]: DW_TAG_structure_type 16 FOO-NEXT: DW_AT_name {{.*}}"foo" 17 18 BAR: debug_info contents: 19 BAR: DW_TAG_variable 20 BAR: DW_TAG_variable 21 BAR-NEXT: DW_AT_name {{.*}}"b" 22 BAR: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]]) 23 24 BAR: debug_types contents: 25 BAR: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at 26 BAR: DW_TAG_type_unit 27 BAR-NOT: NULL 28 BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type 29 BAR-NEXT: DW_AT_name {{.*}}"bar" 30 31 TYPES-NOT: debug_info contents: 32 TYPES: debug_types contents: 33