diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-15 17:36:47 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-15 17:36:47 +0000 |
commit | 5f03238d629c32bb0bab78d112a42293838558e9 (patch) | |
tree | f1d6c9aada113a2ab81f8751199c43a326769603 /test/DebugInfo | |
parent | 46a49da410a738a68ecbd2964f519251ba27fc66 (diff) | |
download | external_llvm-5f03238d629c32bb0bab78d112a42293838558e9.zip external_llvm-5f03238d629c32bb0bab78d112a42293838558e9.tar.gz external_llvm-5f03238d629c32bb0bab78d112a42293838558e9.tar.bz2 |
Revert r93504 because older uses of llvm.dbg.declare intrinsics need to be auto-upgraded
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/2009-10-16-Scope.ll | 5 | ||||
-rw-r--r-- | test/DebugInfo/printdbginfo2.ll | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/test/DebugInfo/2009-10-16-Scope.ll b/test/DebugInfo/2009-10-16-Scope.ll index 9f9fa65..ea43249 100644 --- a/test/DebugInfo/2009-10-16-Scope.ll +++ b/test/DebugInfo/2009-10-16-Scope.ll @@ -9,7 +9,8 @@ entry: br label %do.body, !dbg !0 do.body: ; preds = %entry - call void @llvm.dbg.declare(metadata !{i32* %count_}, metadata !4) + %0 = bitcast i32* %count_ to { }* ; <{ }*> [#uses=1] + call void @llvm.dbg.declare({ }* %0, metadata !4) %conv = ptrtoint i32* %count_ to i32, !dbg !0 ; <i32> [#uses=1] %call = call i32 @foo(i32 %conv) ssp, !dbg !0 ; <i32> [#uses=0] br label %do.end, !dbg !0 @@ -18,7 +19,7 @@ do.end: ; preds = %do.body ret void, !dbg !7 } -declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone +declare void @llvm.dbg.declare({ }*, metadata) nounwind readnone declare i32 @foo(i32) ssp diff --git a/test/DebugInfo/printdbginfo2.ll b/test/DebugInfo/printdbginfo2.ll index e19395b..759310f 100644 --- a/test/DebugInfo/printdbginfo2.ll +++ b/test/DebugInfo/printdbginfo2.ll @@ -19,11 +19,11 @@ entry: call void @llvm.dbg.stoppoint(i32 6, i32 3, metadata !1) call void @llvm.dbg.stoppoint(i32 7, i32 3, metadata !1) %0 = bitcast %struct.foo* %b to { }* ; <{ }*> [#uses=1] - call void @llvm.dbg.declare(metadata !{%struct.foo* %b}, metadata !4) + call void @llvm.dbg.declare({ }* %0, metadata !4) ; CHECK:; %0 is variable b of type foo declared at x.c:7 call void @llvm.dbg.stoppoint(i32 8, i32 3, metadata !1) %1 = bitcast [4 x i32]* %a to { }* ; <{ }*> [#uses=1] - call void @llvm.dbg.declare(metadata !{[4 x i32]* %a}, metadata !8) + call void @llvm.dbg.declare({ }* %1, metadata !8) ; CHECK:; %1 is variable a of type declared at x.c:8 call void @llvm.dbg.stoppoint(i32 9, i32 3, metadata !1) %tmp = getelementptr inbounds %struct.foo* %b, i32 0, i32 0 ; <i32*> [#uses=1] @@ -46,7 +46,7 @@ declare void @llvm.dbg.func.start(metadata) nounwind readnone declare void @llvm.dbg.stoppoint(i32, i32, metadata) nounwind readnone -declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone +declare void @llvm.dbg.declare({ }*, metadata) nounwind readnone declare void @llvm.dbg.region.end(metadata) nounwind readnone |