Legalize metadata in legacy testcases
authorAdrian Prantl <aprantl@apple.com>
Wed, 21 Dec 2016 23:30:35 +0000 (23:30 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 21 Dec 2016 23:30:35 +0000 (23:30 +0000)
llvm-svn: 290286

llvm/test/Transforms/GlobalOpt/2009-03-05-dbg.ll

index ed77e31..d7d9d20 100644 (file)
@@ -55,8 +55,10 @@ return:                                           ; preds = %bb2
 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
 
 !llvm.dbg.cu = !{!1}
+!llvm.module.flags = !{!22, !23}
+
 !0 = !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "Stop", line: 2, isLocal: true, isDefinition: true, scope: !1, file: !1, type: !2))
-!1 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !20, enums: !21, retainedTypes: !21, globals: !{!0})
+!1 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !20, globals: !{!0})
 !2 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
 !3 = !DILocalVariable(name: "i", line: 4, arg: 1, scope: !4, file: !1, type: !2)
 !4 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !1, scope: !1, type: !5)
@@ -77,3 +79,5 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnon
 !19 = !DILocation(line: 16, scope: !14)
 !20 = !DIFile(filename: "g.c", directory: "/tmp")
 !21 = !{i32 0}
+!17 = !{i32 2, !"Dwarf Version", i32 2}
+!18 = !{i32 2, !"Debug Info Version", i32 3}