1 ## This test checks that debug info related to deleted code (marked with
2 ## tombstone=bfd) is removed.
4 # RUN: yaml2obj %s -o %t.o
6 # RUN: llvm-dwarfutil --tombstone=bfd --garbage-collection %t.o - | llvm-dwarfdump -a - | FileCheck %s
7 # RUN: llvm-dwarfutil --tombstone=universal --garbage-collection %t.o - | llvm-dwarfdump -a - | FileCheck %s
9 # CHECK: DW_TAG_compile_unit
10 # CHECK: DW_AT_name{{.*}}"CU1"
11 # CHECK: DW_TAG_class_type
12 # CHECK: DW_AT_name{{.*}}"class1"
13 # CHECK-NOT: DW_TAG_class_type
16 # CHECK: DW_TAG_subprogram
17 # CHECK: DW_AT_name{{.*}}"foo1"
18 # CHECK: DW_AT_low_pc{{.*}}0x0000000000001000
19 # CHECK: DW_AT_high_pc{{.*}}0x0000000000001010
20 # CHECK: DW_AT_type{{.*}}"class1"
21 # CHECK-NOT: DW_TAG_subprogram
34 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
40 - Tag: DW_TAG_compile_unit
41 Children: DW_CHILDREN_yes
43 - Attribute: DW_AT_producer
45 - Attribute: DW_AT_language
47 - Attribute: DW_AT_name
49 - Attribute: DW_AT_low_pc
51 - Attribute: DW_AT_high_pc
53 - Tag: DW_TAG_subprogram
54 Children: DW_CHILDREN_no
56 - Attribute: DW_AT_name
58 - Attribute: DW_AT_low_pc
60 - Attribute: DW_AT_high_pc
62 - Attribute: DW_AT_type
64 - Tag: DW_TAG_class_type
65 Children: DW_CHILDREN_yes
67 - Attribute: DW_AT_name
70 Children: DW_CHILDREN_no
72 - Attribute: DW_AT_type
74 - Attribute: DW_AT_name
76 - Tag: DW_TAG_class_type
77 Children: DW_CHILDREN_no
79 - Attribute: DW_AT_name
81 - Attribute: DW_AT_declaration
82 Form: DW_FORM_flag_present
83 - Tag: DW_TAG_class_type
84 Children: DW_CHILDREN_yes
86 - Attribute: DW_AT_name
88 - Attribute: DW_AT_declaration
89 Form: DW_FORM_flag_present
90 - Tag: DW_TAG_template_type_parameter
91 Children: DW_CHILDREN_no
93 - Attribute: DW_AT_type
95 - Tag: DW_TAG_base_type
96 Children: DW_CHILDREN_no
98 - Attribute: DW_AT_name