summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/pr11300.ll
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-29 00:58:04 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-29 00:58:04 +0000
commit73d697c641f18c093a9d801c82f914e255c15072 (patch)
tree9b7b445c13e0f3e3c42eae713b72caf776021056 /llvm/test/DebugInfo/X86/pr11300.ll
parentb987e517f2db1bcb780f460454079d6bea0c83e6 (diff)
downloadbcm5719-llvm-73d697c641f18c093a9d801c82f914e255c15072.tar.gz
bcm5719-llvm-73d697c641f18c093a9d801c82f914e255c15072.zip
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. llvm-svn: 193567
Diffstat (limited to 'llvm/test/DebugInfo/X86/pr11300.ll')
-rw-r--r--llvm/test/DebugInfo/X86/pr11300.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/X86/pr11300.ll b/llvm/test/DebugInfo/X86/pr11300.ll
index cdd5a743d30..e2ccf6848f0 100644
--- a/llvm/test/DebugInfo/X86/pr11300.ll
+++ b/llvm/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 }
OpenPOWER on IntegriCloud