summaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/arc.ll
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2018-12-18 20:33:00 +0000
committerPete Cooper <peter_cooper@apple.com>2018-12-18 20:33:00 +0000
commit6682997445e8ad84b4fbab29270e016af5a31be3 (patch)
tree44f2f98644148c9dd9142a8f1caf595ab10f7452 /test/CodeGenObjC/arc.ll
parentccfb6f1d2d2ec37c38a5583d63a8a7974d032c59 (diff)
downloadclang-6682997445e8ad84b4fbab29270e016af5a31be3.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/arc.ll')
-rw-r--r--test/CodeGenObjC/arc.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGenObjC/arc.ll b/test/CodeGenObjC/arc.ll
index caafcff052..f23c656c34 100644
--- a/test/CodeGenObjC/arc.ll
+++ b/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
}