[llvm] r290287 - Legalize metadata in legacy testcases
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 15:36:06 PST 2016
Author: adrian
Date: Wed Dec 21 17:36:06 2016
New Revision: 290287
URL: http://llvm.org/viewvc/llvm-project?rev=290287&view=rev
Log:
Legalize metadata in legacy testcases
Modified:
llvm/trunk/test/Transforms/GlobalOpt/2009-03-05-dbg.ll
Modified: llvm/trunk/test/Transforms/GlobalOpt/2009-03-05-dbg.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/2009-03-05-dbg.ll?rev=290287&r1=290286&r2=290287&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/2009-03-05-dbg.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/2009-03-05-dbg.ll Wed Dec 21 17:36:06 2016
@@ -7,14 +7,14 @@
define i32 @foo(i32 %i) nounwind ssp {
entry:
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- call void @llvm.dbg.value(metadata i32 %i, i64 0, metadata !3, metadata !{})
+ call void @llvm.dbg.value(metadata i32 %i, i64 0, metadata !3, metadata !DIExpression()), !dbg !7
%0 = icmp eq i32 %i, 1, !dbg !7 ; <i1> [#uses=1]
br i1 %0, label %bb, label %bb1, !dbg !7
bb: ; preds = %entry
store i32 0, i32* @Stop, align 4, !dbg !9
%1 = mul nsw i32 %i, 42, !dbg !10 ; <i32> [#uses=1]
- call void @llvm.dbg.value(metadata i32 %1, i64 0, metadata !3, metadata !{}), !dbg !10
+ call void @llvm.dbg.value(metadata i32 %1, i64 0, metadata !3, metadata !DIExpression()), !dbg !10
br label %bb2, !dbg !10
bb1: ; preds = %entry
@@ -55,12 +55,12 @@ return:
declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
!llvm.dbg.cu = !{!1}
-!llvm.module.flags = !{!22, !23}
+!llvm.module.flags = !{!21, !22}
-!0 = !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "Stop", line: 2, isLocal: true, isDefinition: true, scope: !1, file: !1, type: !2))
+!0 = !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "Stop", line: 2, isLocal: true, isDefinition: true, scope: !1, file: !20, 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, 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)
+!3 = !DILocalVariable(name: "i", line: 4, arg: 1, scope: !4, file: !20, 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)
!5 = !DISubroutineType(types: !6)
!6 = !{!2, !2}
@@ -78,6 +78,5 @@ declare void @llvm.dbg.value(metadata, i
!18 = !DILocation(line: 15, scope: !14)
!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}
+!21 = !{i32 2, !"Dwarf Version", i32 2}
+!22 = !{i32 2, !"Debug Info Version", i32 3}
More information about the llvm-commits
mailing list