summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-08-07 21:30:31 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-08-07 21:30:31 +0000
commitaf264ce12a04baff28e594bcec7b700161262f92 (patch)
tree1dc2d8ce89d55785d2aeb15caa6b8a1149210688 /clang/test
parent25db8721e9706ea3171d782cc8bbb092ab9732b5 (diff)
downloadbcm5719-llvm-af264ce12a04baff28e594bcec7b700161262f92.tar.gz
bcm5719-llvm-af264ce12a04baff28e594bcec7b700161262f92.zip
objc-arc: set nonlazybind attribute on objc_retain/
objc_release for performance for these most often called APIs. // rdar://12040837 llvm-svn: 161448
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenObjC/arc.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/arc.m b/clang/test/CodeGenObjC/arc.m
index 2a98b10909b..66a6a2f54b7 100644
--- a/clang/test/CodeGenObjC/arc.m
+++ b/clang/test/CodeGenObjC/arc.m
@@ -9,6 +9,9 @@ void test0(id x) {
// CHECK-NEXT: [[TMP:%.*]] = load i8** [[X]]
// CHECK-NEXT: call void @objc_release(i8* [[TMP]])
// CHECK-NEXT: ret void
+// rdar://12040837
+ // CHECK: declare extern_weak i8* @objc_retain(i8*) nonlazybind
+ // CHECK: declare extern_weak void @objc_release(i8*) nonlazybind
}
// CHECK: define i8* @test1(i8*
OpenPOWER on IntegriCloud