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/nondefault-subrange-array.ll | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/test/DebugInfo/X86/nondefault-subrange-array.ll') diff --git a/llvm/test/DebugInfo/X86/nondefault-subrange-array.ll b/llvm/test/DebugInfo/X86/nondefault-subrange-array.ll index 236a4c7ebca..91065a312b6 100644 --- a/llvm/test/DebugInfo/X86/nondefault-subrange-array.ll +++ b/llvm/test/DebugInfo/X86/nondefault-subrange-array.ll @@ -28,6 +28,7 @@ ; CHECK-NEXT: DW_AT_encoding [DW_FORM_data1] (0x05) !llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!21} !0 = metadata !{i32 786449, metadata !20, i32 4, metadata !"clang version 3.3 (trunk 169136)", i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !1, metadata !3, metadata !3, metadata !""} ; [ DW_TAG_compile_unit ] [/Volumes/Sandbox/llvm/t.cpp] [DW_LANG_C_plus_plus] !1 = metadata !{i32 0} @@ -48,3 +49,4 @@ !18 = metadata !{metadata !19} !19 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0] !20 = metadata !{metadata !"t.cpp", metadata !"/Volumes/Sandbox/llvm"} +!21 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} -- cgit v1.2.3