diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-10-29 22:49:29 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-10-29 22:49:29 +0000 |
commit | d498e5e960f237d3eb04ad7680bd093d1954c7fe (patch) | |
tree | e102ff8da43f1f3510c12177713e49505d49fd56 /test/DebugInfo/member-pointers.ll | |
parent | d1ea5928ddbd38e99507f7f18df8ec8a865c7799 (diff) | |
download | external_llvm-d498e5e960f237d3eb04ad7680bd093d1954c7fe.zip external_llvm-d498e5e960f237d3eb04ad7680bd093d1954c7fe.tar.gz external_llvm-d498e5e960f237d3eb04ad7680bd093d1954c7fe.tar.bz2 |
Debug Info: instead of calling addToContextOwner which constructs the context
after the DIE creation, we construct the context first.
Ensure that we create the context before we create a type so that we can add
the newly created type to the parent. Remove last use of addToContextOwner
now that it's not needed.
We use createAndAddDIE to wrap around "new DIE(". Now all shareable DIEs
should be added to their parents right after the creation.
Reviewed off-list by Eric, Thanks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/member-pointers.ll')
-rw-r--r-- | test/DebugInfo/member-pointers.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/DebugInfo/member-pointers.ll b/test/DebugInfo/member-pointers.ll index 42b57f5..548fadd 100644 --- a/test/DebugInfo/member-pointers.ll +++ b/test/DebugInfo/member-pointers.ll @@ -4,12 +4,12 @@ ; RUN: llc -filetype=obj -O0 < %s > %t ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s ; CHECK: DW_TAG_ptr_to_member_type -; CHECK: [[TYPE:.*]]: DW_TAG_subroutine_type +; CHECK: DW_TAG_ptr_to_member_type +; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}) +; CHECK: [[TYPE]]: DW_TAG_subroutine_type ; CHECK: DW_TAG_formal_parameter ; CHECK-NEXT: DW_AT_type ; CHECK-NEXT: DW_AT_artificial [DW_FORM_flag -; CHECK: DW_TAG_ptr_to_member_type -; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) ; IR generated from clang -g with the following source: ; struct S { ; }; |