1 ## This test checks that debug info related to deleted code (marked with
2 ## tombstone=maxpc) is removed.
4 ## RUN: yaml2obj %s -o %t.o
6 # RUN: llvm-dwarfutil --no-odr --tombstone=maxpc --garbage-collection %t.o - | llvm-dwarfdump -a - | FileCheck %s
7 # RUN: llvm-dwarfutil --no-odr --tombstone=universal --garbage-collection %t.o - | llvm-dwarfdump -a - | FileCheck %s
9 # RUN: llvm-dwarfutil --no-odr --linker parallel --tombstone=maxpc --garbage-collection %t.o - | llvm-dwarfdump -a - | FileCheck %s
10 # RUN: llvm-dwarfutil --no-odr --linker parallel --tombstone=universal --garbage-collection %t.o - | llvm-dwarfdump -a - | FileCheck %s
12 # CHECK: DW_TAG_compile_unit
13 # CHECK: DW_AT_name{{.*}}"CU1"
14 # CHECK: DW_TAG_class_type
15 # CHECK: DW_AT_name{{.*}}"class1"
16 # CHECK-NOT: DW_TAG_class_type
19 # CHECK: DW_TAG_subprogram
20 # CHECK: DW_AT_name{{.*}}"foo1"
21 # CHECK: DW_AT_low_pc{{.*}}0x0000000000001000
22 # CHECK: DW_AT_high_pc{{.*}}0x0000000000001010
23 # CHECK: DW_AT_type{{.*}}"class1"
24 # CHECK-NOT: DW_TAG_subprogram
37 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
43 - Tag: DW_TAG_compile_unit
44 Children: DW_CHILDREN_yes
46 - Attribute: DW_AT_producer
48 - Attribute: DW_AT_language
50 - Attribute: DW_AT_name
52 - Attribute: DW_AT_low_pc
54 - Attribute: DW_AT_high_pc
56 - Tag: DW_TAG_subprogram
57 Children: DW_CHILDREN_no
59 - Attribute: DW_AT_name
61 - Attribute: DW_AT_low_pc
63 - Attribute: DW_AT_high_pc
65 - Attribute: DW_AT_type
67 - Tag: DW_TAG_class_type
68 Children: DW_CHILDREN_yes
70 - Attribute: DW_AT_name
73 Children: DW_CHILDREN_no
75 - Attribute: DW_AT_type
77 - Attribute: DW_AT_name
79 - Tag: DW_TAG_class_type
80 Children: DW_CHILDREN_no
82 - Attribute: DW_AT_name
84 - Attribute: DW_AT_declaration
85 Form: DW_FORM_flag_present
86 - Tag: DW_TAG_class_type
87 Children: DW_CHILDREN_yes
89 - Attribute: DW_AT_name
91 - Attribute: DW_AT_declaration
92 Form: DW_FORM_flag_present
93 - Tag: DW_TAG_template_type_parameter
94 Children: DW_CHILDREN_no
96 - Attribute: DW_AT_type
98 - Tag: DW_TAG_base_type
99 Children: DW_CHILDREN_no
101 - Attribute: DW_AT_name
149 - Value: 0xFFFFFFFFFFFFFFFF