From: Adrian Prantl Date: Wed, 21 Dec 2016 23:28:49 +0000 (+0000) Subject: Legalize metadata in legacy testcases X-Git-Tag: android-x86-7.1-r4~22891 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6b556068df896da49efbd9e840a2f09cbcaa6a4f;p=android-x86%2Fexternal-llvm.git Legalize metadata in legacy testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290285 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll b/test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll index 967eb669798..db709984a4e 100644 --- a/test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll +++ b/test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll @@ -18,12 +18,13 @@ if.else295: ; preds = %entry declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone -!llvm.dbg.cu = !{!0} +!llvm.dbg.cu = !{!3} +!llvm.module.flags = !{!22, !23} !0 = !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "vsplive", line: 617, isLocal: true, isDefinition: true, scope: !1, file: !2, type: !6)) !1 = distinct !DISubprogram(name: "drt_vsprintf", line: 616, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !3, file: !20, scope: !2, type: !4) !2 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594") -!3 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.0 (http://llvm.org/git/clang.git git:/git/puzzlebox/clang.git/ c4d1aea01c4444eb81bdbf391f1be309127c3cf1)", isOptimized: true, emissionKind: FullDebug, file: !20, enums: !21, retainedTypes: !21, globals: !{!0}) +!3 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.0 (http://llvm.org/git/clang.git git:/git/puzzlebox/clang.git/ c4d1aea01c4444eb81bdbf391f1be309127c3cf1)", isOptimized: true, emissionKind: FullDebug, file: !20, globals: !{!0}) !4 = !DISubroutineType(types: !5) !5 = !{!6} !6 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) @@ -41,4 +42,5 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone !18 = !DILocation(line: 853, column: 11, scope: !17) !19 = !DILocation(line: 853, column: 29, scope: !17) !20 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594") -!21 = !{i32 0} +!22 = !{i32 2, !"Debug Info Version", i32 3} +!23 = !{i32 2, !"Dwarf Version", i32 2} diff --git a/test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll b/test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll index 8ea9bec42d2..5fc87625be5 100644 --- a/test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll +++ b/test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll @@ -45,6 +45,7 @@ declare i32 @x1() optsize declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone !llvm.dbg.cu = !{!3} +!llvm.module.flags = !{!27, !28} !0 = !DILocalVariable(name: "buf", line: 4, arg: 1, scope: !1, file: !2, type: !6) !1 = distinct !DISubprogram(name: "x0", linkageName: "x0", line: 5, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !3, file: !26, scope: null, type: !4) @@ -73,3 +74,5 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnon !24 = !DILocation(line: 14, column: 2, scope: !22) !25 = !DILocation(line: 15, column: 1, scope: !11) !26 = !DIFile(filename: "t.c", directory: "/private/tmp") +!27 = !{i32 2, !"Dwarf Version", i32 2} +!28 = !{i32 2, !"Debug Info Version", i32 3}