diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-11-23 01:16:29 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-11-23 01:16:29 +0000 |
commit | bc8569d0c09368d2375f3b6bb895e07a9e24df41 (patch) | |
tree | 3654df0d2102cfb202eed3340d01053a4e0920d4 /test/Transforms/SimplifyCFG | |
parent | fbe605e7122e319eacfbc708660bed48ecce7cf2 (diff) | |
download | llvm-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/SimplifyCFG')
-rw-r--r-- | test/Transforms/SimplifyCFG/hoist-dbgvalue.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll b/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll index d324578ebc..0547fa9720 100644 --- a/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll +++ b/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll @@ -29,6 +29,7 @@ declare i32 @bar(...) declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone +!llvm.module.flags = !{!21} !llvm.dbg.sp = !{!0} !0 = metadata !{i32 589870, metadata !20, metadata !1, metadata !"foo", metadata !"foo", metadata !"", i32 2, metadata !3, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 (i32)* @foo, null, null, null, i32 0} ; [ DW_TAG_subprogram ] [line 2] [def] [scope 0] [foo] @@ -52,3 +53,4 @@ declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone !18 = metadata !{i32 8, i32 3, metadata !17, null} !19 = metadata !{i32 9, i32 3, metadata !10, null} !20 = metadata !{metadata !"b.c", metadata !"/private/tmp"} +!21 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} |