llvm.org GIT mirror llvm / e2bb4f4
DebugInfo: Refactor test to not rely on fixed DIE offsets git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203186 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 5 years ago
1 changed file(s) with 11 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
66 ; first check that we have a TAG_subprogram at a given offset and it has
77 ; AT_inline.
88
9 ; CHECK: 0x0000011c: DW_TAG_subprogram [17]
10 ; CHECK-NEXT: DW_AT_specification
9 ; CHECK: DW_TAG_class_type
10 ; CHECK: DW_TAG_class_type
11 ; CHECK: DW_TAG_subprogram
12 ; CHECK: [[DTOR_DECL:0x........]]: DW_TAG_subprogram
13
14 ; CHECK: [[DTOR_OOL:0x........]]: DW_TAG_subprogram
15 ; CHECK-NEXT: DW_AT_specification {{.*}} {[[DTOR_DECL]]})
1116 ; CHECK-NEXT: DW_AT_inline
1217
1318
1419 ; and then that a TAG_subprogram refers to it with AT_abstract_origin.
1520
16 ; CHECK: 0x0000015d: DW_TAG_subprogram [19]
17 ; CHECK-NEXT: DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x011c => {0x0000011c})
21 ; CHECK: DW_TAG_subprogram
22 ; CHECK: DW_TAG_subprogram
23 ; CHECK: DW_TAG_subprogram
24 ; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[DTOR_OOL]]})
1825
1926 define i32 @_ZN17nsAutoRefCnt7ReleaseEv() {
2027 entry: