summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/trap-debugloc.ll
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-11-22 21:49:45 +0000
committerManman Ren <manman.ren@gmail.com>2013-11-22 21:49:45 +0000
commitbec50063a5e546b7f5786961500566f13984679b (patch)
treefbf541bcd87e85d7ffffdd2f608f4945b71aa1ce /test/Transforms/SimplifyCFG/trap-debugloc.ll
parente1af5f6ad178e76429b58759042f061247d90435 (diff)
downloadllvm-bec50063a5e546b7f5786961500566f13984679b.tar.gz
llvm-bec50063a5e546b7f5786961500566f13984679b.tar.bz2
llvm-bec50063a5e546b7f5786961500566f13984679b.tar.xz
Debug Info: update testing cases to specify the debug info version number.
We are going to drop debug info without a version number or with a different version number, to make sure we don't crash when we see bitcode files with different debug info metadata format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/trap-debugloc.ll')
-rw-r--r--test/Transforms/SimplifyCFG/trap-debugloc.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/trap-debugloc.ll b/test/Transforms/SimplifyCFG/trap-debugloc.ll
index d6ab9c635f..3b449cb000 100644
--- a/test/Transforms/SimplifyCFG/trap-debugloc.ll
+++ b/test/Transforms/SimplifyCFG/trap-debugloc.ll
@@ -8,6 +8,7 @@ define void @foo() nounwind ssp {
}
!llvm.dbg.cu = !{!2}
+!llvm.module.flags = !{!10}
!llvm.dbg.sp = !{!0}
!0 = metadata !{i32 589870, metadata !8, metadata !1, metadata !"foo", metadata !"foo", metadata !"", i32 3, metadata !3, i1 false, i1 true, i32 0, i32 0, null, i32 0, i1 false, void ()* @foo, null, null, null, i32 0} ; [ DW_TAG_subprogram ] [line 3] [def] [scope 0] [foo]
@@ -20,3 +21,4 @@ define void @foo() nounwind ssp {
!7 = metadata !{i32 5, i32 1, metadata !6, null}
!8 = metadata !{metadata !"foo.c", metadata !"/private/tmp"}
!9 = metadata !{metadata !0}
+!10 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}