From bec50063a5e546b7f5786961500566f13984679b Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Fri, 22 Nov 2013 21:49:45 +0000 Subject: 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 --- test/Linker/2011-08-04-DebugLoc.ll | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/Linker/2011-08-04-DebugLoc.ll') diff --git a/test/Linker/2011-08-04-DebugLoc.ll b/test/Linker/2011-08-04-DebugLoc.ll index 6412b70278..d26e8cd04c 100644 --- a/test/Linker/2011-08-04-DebugLoc.ll +++ b/test/Linker/2011-08-04-DebugLoc.ll @@ -14,6 +14,7 @@ define i32 @foo() nounwind ssp { } !llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!11} !llvm.dbg.sp = !{!1} !0 = metadata !{i32 589841, metadata !8, i32 12, metadata !"Apple clang version 3.0 (tags/Apple/clang-209.11) (based on LLVM 3.0svn)", i1 true, metadata !"", i32 0, metadata !9, metadata !9, metadata !10, null, null, metadata !""} ; [ DW_TAG_compile_unit ] @@ -27,3 +28,4 @@ define i32 @foo() nounwind ssp { !8 = metadata !{metadata !"a.c", metadata !"/private/tmp"} !9 = metadata !{i32 0} !10 = metadata !{metadata !1} +!11 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} -- cgit v1.2.3