diff options
author | Pete Cooper <peter_cooper@apple.com> | 2018-12-18 20:33:00 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2018-12-18 20:33:00 +0000 |
commit | 2cd3596b1a48a3ff007f58f933e77442caeec746 (patch) | |
tree | 3d97406966339ee15d714a06df59b69b65e9b7d6 /clang/test/CodeGenObjC/arc.ll | |
parent | be4f5711073613115c036206db0d9a45fd0632ab (diff) | |
download | bcm5719-llvm-2cd3596b1a48a3ff007f58f933e77442caeec746.tar.gz bcm5719-llvm-2cd3596b1a48a3ff007f58f933e77442caeec746.zip |
Generate objc intrinsics instead of runtime calls as the ARC optimizer now works only on intrinsics
Differential Revision: https://reviews.llvm.org/D55802
Reviewers: rjmccall
llvm-svn: 349535
Diffstat (limited to 'clang/test/CodeGenObjC/arc.ll')
-rw-r--r-- | clang/test/CodeGenObjC/arc.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeGenObjC/arc.ll b/clang/test/CodeGenObjC/arc.ll index caafcff0524..f23c656c349 100644 --- a/clang/test/CodeGenObjC/arc.ll +++ b/clang/test/CodeGenObjC/arc.ll @@ -2,8 +2,8 @@ target triple = "x86_64-apple-darwin10" -declare i8* @objc_retain(i8*) -declare void @objc_release(i8*) +declare i8* @llvm.objc.retain(i8*) +declare void @llvm.objc.release(i8*) ; CHECK-LABEL: define void @test( ; CHECK-NOT: @objc_ @@ -13,15 +13,15 @@ entry: br label %loop loop: - call i8* @objc_retain(i8* %x) + call i8* @llvm.objc.retain(i8* %x) %q = load i1, i1* %p br i1 %q, label %loop.more, label %exit loop.more: - call void @objc_release(i8* %x) + call void @llvm.objc.release(i8* %x) br label %loop exit: - call void @objc_release(i8* %x) + call void @llvm.objc.release(i8* %x) ret void } |