From b7ae53f035e7f9e90bd837b546ea516c00381b51 Mon Sep 17 00:00:00 2001 From: Victor Hernandez Date: Wed, 27 Jan 2010 00:44:36 +0000 Subject: When converting dbg.declare to dbg.value, attach promoted store's debug metadata to dbg.value git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94634 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/Mem2Reg/ConvertDebugInfo.ll | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/Transforms/Mem2Reg/ConvertDebugInfo.ll') diff --git a/test/Transforms/Mem2Reg/ConvertDebugInfo.ll b/test/Transforms/Mem2Reg/ConvertDebugInfo.ll index 8e309c0901..a013a1db99 100644 --- a/test/Transforms/Mem2Reg/ConvertDebugInfo.ll +++ b/test/Transforms/Mem2Reg/ConvertDebugInfo.ll @@ -9,8 +9,8 @@ define double @testfunc(i32 %i, double %j) { call void @llvm.dbg.declare(metadata !{double* %J}, metadata !1) ; CHECK: call void @llvm.dbg.value(metadata !{i32 %i}, i64 0, metadata !0) store i32 %i, i32* %I -; CHECK: call void @llvm.dbg.value(metadata !{double %j}, i64 0, metadata !1) - store double %j, double* %J +; CHECK: call void @llvm.dbg.value(metadata !{double %j}, i64 0, metadata !1), !dbg !3 + store double %j, double* %J, !dbg !3 %t1 = load i32* %I ; [#uses=1] %t2 = add i32 %t1, 1 ; [#uses=1] store i32 %t2, i32* %I @@ -29,3 +29,4 @@ declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone !0 = metadata !{i32 459008, metadata !1, metadata !"foo", metadata !2, i32 5, metadata !"foo"} ; [ DW_TAG_auto_variable ] !1 = metadata !{i32 459008, metadata !1, metadata !"foo", metadata !0, i32 5, metadata !1} ; [ DW_TAG_auto_variable ] !2 = metadata !{i32 458804, i32 0, metadata !2, metadata !"foo", metadata !"bar", metadata !"bar", metadata !2, i32 3, metadata !0, i1 false, i1 true} ; [ DW_TAG_variable ] +!3 = metadata !{i32 4, i32 0, metadata !0, null} -- cgit v1.2.3-18-g5258