diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-10-29 00:58:04 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-10-29 00:58:04 +0000 |
commit | bbdd02cc303d0f38f7739b64f419d645ca17b533 (patch) | |
tree | ca555cce9d2cf9433d337eded22ab6467f726ac7 /test/DebugInfo/X86/pr11300.ll | |
parent | 1a5e787f701c45ac2487d400faf6f6d4def6dcef (diff) | |
download | external_llvm-bbdd02cc303d0f38f7739b64f419d645ca17b533.zip external_llvm-bbdd02cc303d0f38f7739b64f419d645ca17b533.tar.gz external_llvm-bbdd02cc303d0f38f7739b64f419d645ca17b533.tar.bz2 |
Debug Info: use createAndAddDIE for newly-created Subprogram DIEs.
More patches will be submitted to convert "new DIE(" to use createAddAndDIE in
DwarfCompileUnit.cpp. This will simplify implementation of addDIEEntry where
we have to decide between ref4 and ref_addr, because DIEs that can be shared
across CU will be added to a CU already.
Reviewed off-list by Eric.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86/pr11300.ll')
-rw-r--r-- | test/DebugInfo/X86/pr11300.ll | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/DebugInfo/X86/pr11300.ll b/test/DebugInfo/X86/pr11300.ll index cdd5a74..e2ccf68 100644 --- a/test/DebugInfo/X86/pr11300.ll +++ b/test/DebugInfo/X86/pr11300.ll @@ -3,8 +3,11 @@ ; test that the DW_AT_specification is a back edge in the file. -; CHECK: [[BACK:0x[0-9a-f]*]]: DW_TAG_subprogram [6] -; CHECK: DW_AT_specification [DW_FORM_ref4] (cu + {{.*}} => {[[BACK]]}) +; CHECK: DW_TAG_subprogram +; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]*}}] = "zed") +; CHECK: DW_TAG_subprogram +; CHECK-NEXT: DW_AT_specification [DW_FORM_ref4] (cu + {{.*}} => {[[BACK:0x[0-9a-f]*]]}) +; CHECK: [[BACK]]: DW_TAG_subprogram %struct.foo = type { i8 } |