From: David Blaikie Date: Fri, 7 Mar 2014 01:19:31 +0000 (+0000) Subject: DebugInfo: Refactor test to not rely on fixed DIE offsets X-Git-Tag: android-x86-7.1-r4~64409 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e2bb4f48adbbe83d559800ab0cffb2252dce998b;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/test/DebugInfo/X86/concrete_out_of_line.ll b/test/DebugInfo/X86/concrete_out_of_line.ll index 381b7b09ffe..2f5a7d11eb3 100644 --- a/test/DebugInfo/X86/concrete_out_of_line.ll +++ b/test/DebugInfo/X86/concrete_out_of_line.ll @@ -7,15 +7,22 @@ ; first check that we have a TAG_subprogram at a given offset and it has ; AT_inline. -; CHECK: 0x0000011c: DW_TAG_subprogram [17] -; CHECK-NEXT: DW_AT_specification +; CHECK: DW_TAG_class_type +; CHECK: DW_TAG_class_type +; CHECK: DW_TAG_subprogram +; CHECK: [[DTOR_DECL:0x........]]: DW_TAG_subprogram + +; CHECK: [[DTOR_OOL:0x........]]: DW_TAG_subprogram +; CHECK-NEXT: DW_AT_specification {{.*}} {[[DTOR_DECL]]}) ; CHECK-NEXT: DW_AT_inline ; and then that a TAG_subprogram refers to it with AT_abstract_origin. -; CHECK: 0x0000015d: DW_TAG_subprogram [19] -; CHECK-NEXT: DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x011c => {0x0000011c}) +; CHECK: DW_TAG_subprogram +; CHECK: DW_TAG_subprogram +; CHECK: DW_TAG_subprogram +; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[DTOR_OOL]]}) define i32 @_ZN17nsAutoRefCnt7ReleaseEv() { entry: