summaryrefslogtreecommitdiff
path: root/test/DebugInfo
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-12-01 18:13:48 +0000
committerDevang Patel <dpatel@apple.com>2009-12-01 18:13:48 +0000
commitc09ddc1c792b35a20b2aeaa708fd00a76638805c (patch)
treec04eb048b7bb745b3b3c0770392d358912f8ebce /test/DebugInfo
parentd122874996a6faa8832569b632fd73a32ace7ae7 (diff)
downloadllvm-c09ddc1c792b35a20b2aeaa708fd00a76638805c.tar.gz
llvm-c09ddc1c792b35a20b2aeaa708fd00a76638805c.tar.bz2
llvm-c09ddc1c792b35a20b2aeaa708fd00a76638805c.tar.xz
Clear function specific containers while processing end of a function, even if DW_TAG_subprogram for current function is not found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r--test/DebugInfo/2009-12-01-CurrentFn.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/DebugInfo/2009-12-01-CurrentFn.ll b/test/DebugInfo/2009-12-01-CurrentFn.ll
new file mode 100644
index 0000000000..d33a8f476e
--- /dev/null
+++ b/test/DebugInfo/2009-12-01-CurrentFn.ll
@@ -0,0 +1,17 @@
+; RUN: llc < %s | grep "func_end1:" | count 1
+
+declare void @foo()
+
+define void @bar(i32 %i) nounwind ssp {
+entry:
+ tail call void @foo() nounwind, !dbg !0
+ ret void, !dbg !0
+}
+
+!0 = metadata !{i32 9, i32 0, metadata !1, null}
+!1 = metadata !{i32 458798, i32 0, metadata !2, metadata !"baz", metadata !"baz", metadata !"baz", metadata !2, i32 8, metadata !3, i1 true, i1 true}; [DW_TAG_subprogram ]
+!2 = metadata !{i32 458769, i32 0, i32 1, metadata !"2007-12-VarArrayDebug.c", metadata !"/Volumes/Data/ddunbar/llvm/test/FrontendC", metadata !"4.2.1 (Based on Apple Inc. build 5653) (LLVM build)", i1 true, i1 true, metadata !"", i32 0}; [DW_TAG_compile_unit ]
+!3 = metadata !{i32 458773, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0}; [DW_TAG_subroutine_type ]
+!4 = metadata !{null, metadata !5}
+!5 = metadata !{i32 458788, metadata !2, metadata !"int", metadata !2, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5}; [DW_TAG_base_type ]
+