diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-27 00:44:36 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-27 00:44:36 +0000 |
commit | b7ae53f035e7f9e90bd837b546ea516c00381b51 (patch) | |
tree | f1ce6e5e186122825a3ef4b9f428433ad3743f33 /test/Transforms/Mem2Reg/ConvertDebugInfo.ll | |
parent | 2c9ad13b14de9fcc98f868d301950f0f386f2545 (diff) |
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
Diffstat (limited to 'test/Transforms/Mem2Reg/ConvertDebugInfo.ll')
-rw-r--r-- | test/Transforms/Mem2Reg/ConvertDebugInfo.ll | 5 |
1 files changed, 3 insertions, 2 deletions
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 ; <i32> [#uses=1] %t2 = add i32 %t1, 1 ; <i32> [#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} |