diff options
Diffstat (limited to 'llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll')
-rw-r--r-- | llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll b/llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll index 2155a36db41..afeab0e6a7f 100644 --- a/llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll +++ b/llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll @@ -2,9 +2,9 @@ declare void @f() declare i32 @__CxxFrameHandler3(...) -declare dllimport i8* @objc_retain(i8*) -declare dllimport i8* @objc_retainAutoreleasedReturnValue(i8*) -declare dllimport void @objc_release(i8*) +declare dllimport i8* @llvm.objc.retain(i8*) +declare dllimport i8* @llvm.objc.retainAutoreleasedReturnValue(i8*) +declare dllimport void @llvm.objc.release(i8*) @x = external global i8* @@ -12,26 +12,26 @@ define void @g(i8* %p) personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 t invoke void @f() to label %invoke.cont unwind label %ehcleanup invoke.cont: - %call = tail call i8* @objc_retain(i8* %p) nounwind + %call = tail call i8* @llvm.objc.retain(i8* %p) nounwind %tmp = load i8*, i8** @x, align 4 store i8* %call, i8** @x, align 4 - tail call void @objc_release(i8* %tmp) nounwind + tail call void @llvm.objc.release(i8* %tmp) nounwind ret void ehcleanup: %1 = cleanuppad within none [] - %call1 = tail call i8* @objc_retain(i8* %p) nounwind [ "funclet"(token %1) ] + %call1 = tail call i8* @llvm.objc.retain(i8* %p) nounwind [ "funclet"(token %1) ] %tmp1 = load i8*, i8** @x, align 4 store i8* %call1, i8** @x, align 4 - tail call void @objc_release(i8* %tmp1) nounwind [ "funclet"(token %1) ] + tail call void @llvm.objc.release(i8* %tmp1) nounwind [ "funclet"(token %1) ] cleanupret from %1 unwind to caller } ; CHECK-LABEL: invoke.cont: -; CHECK: tail call void @objc_storeStrong(i8** @x, i8* %p) #0{{$}} +; CHECK: tail call void @llvm.objc.storeStrong(i8** @x, i8* %p) #0{{$}} ; CHECK: ret void ; CHECK-LABEL: ehcleanup: ; CHECK: %1 = cleanuppad within none [] -; CHECK: tail call void @objc_storeStrong(i8** @x, i8* %p) #0 [ "funclet"(token %1) ] +; CHECK: tail call void @llvm.objc.storeStrong(i8** @x, i8* %p) #0 [ "funclet"(token %1) ] ; CHECK: cleanupret from %1 unwind to caller |