From 409558f81e86f6a5773ac19897e1f6e4e21fa64a 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. llvm-svn: 195504 --- llvm/test/DebugInfo/X86/vector.ll | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/test/DebugInfo/X86/vector.ll') diff --git a/llvm/test/DebugInfo/X86/vector.ll b/llvm/test/DebugInfo/X86/vector.ll index 24a5d3d0652..6e14ed67fc3 100644 --- a/llvm/test/DebugInfo/X86/vector.ll +++ b/llvm/test/DebugInfo/X86/vector.ll @@ -10,6 +10,7 @@ @a = common global <4 x i32> zeroinitializer, align 16 !llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!13} !0 = metadata !{i32 786449, metadata !12, i32 12, metadata !"clang version 3.3 (trunk 171825) (llvm/trunk 171822)", i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !1, metadata !3, metadata !3, metadata !""} ; [ DW_TAG_compile_unit ] [/Users/echristo/foo.c] [DW_LANG_C99] !1 = metadata !{i32 0} @@ -26,3 +27,4 @@ ; Check that we get an array type with a vector attribute. ; CHECK: DW_TAG_array_type ; CHECK-NEXT: DW_AT_GNU_vector +!13 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} -- cgit v1.2.3