OSDN Git Service

Legalize metadata in legacy testcases
authorAdrian Prantl <aprantl@apple.com>
Wed, 21 Dec 2016 23:28:49 +0000 (23:28 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 21 Dec 2016 23:28:49 +0000 (23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290285 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll
test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll

index 967eb66..db70998 100644 (file)
@@ -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}
index 8ea9bec..5fc8762 100644 (file)
@@ -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}