summaryrefslogtreecommitdiff
path: root/test/Transforms/LoopIdiom/debug-line.ll
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-11-23 01:16:29 +0000
committerManman Ren <manman.ren@gmail.com>2013-11-23 01:16:29 +0000
commitbc8569d0c09368d2375f3b6bb895e07a9e24df41 (patch)
tree3654df0d2102cfb202eed3340d01053a4e0920d4 /test/Transforms/LoopIdiom/debug-line.ll
parentfbe605e7122e319eacfbc708660bed48ecce7cf2 (diff)
downloadllvm-bc8569d0c09368d2375f3b6bb895e07a9e24df41.tar.gz
llvm-bc8569d0c09368d2375f3b6bb895e07a9e24df41.tar.bz2
llvm-bc8569d0c09368d2375f3b6bb895e07a9e24df41.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. Make tests more robust by removing hard-coded metadata numbers in CHECK lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopIdiom/debug-line.ll')
-rw-r--r--test/Transforms/LoopIdiom/debug-line.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Transforms/LoopIdiom/debug-line.ll b/test/Transforms/LoopIdiom/debug-line.ll
index 343c380084..ef4a478d0e 100644
--- a/test/Transforms/LoopIdiom/debug-line.ll
+++ b/test/Transforms/LoopIdiom/debug-line.ll
@@ -27,6 +27,7 @@ declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
+!llvm.module.flags = !{!19}
!llvm.dbg.sp = !{!0}
!0 = metadata !{i32 589870, metadata !18, metadata !1, metadata !"foo", metadata !"foo", metadata !"", i32 2, metadata !3, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void (double*)* @foo, null, null, null, i32 0} ; [ DW_TAG_subprogram ] [line 2] [def] [scope 0] [foo]
@@ -48,3 +49,4 @@ declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
!16 = metadata !{i32 3, i32 29, metadata !11, null}
!17 = metadata !{i32 5, i32 1, metadata !12, null}
!18 = metadata !{metadata !"li.c", metadata !"/private/tmp"}
+!19 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}