summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/objc2-weak-block-call.m
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-16 00:49:34 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-16 00:49:34 +0000
commitbf9a86b50f04943b629650438508b0df1c5109dc (patch)
treef968745288a54cc733eee77143d7395dbb996333 /clang/test/CodeGenObjC/objc2-weak-block-call.m
parent1a36219c865c40cff3f5cd354e9403fbaae8b24d (diff)
downloadbcm5719-llvm-bf9a86b50f04943b629650438508b0df1c5109dc.tar.gz
bcm5719-llvm-bf9a86b50f04943b629650438508b0df1c5109dc.zip
Don't call objc_read_weak as part of emitting a block literal.
Nobody ever gave me a clear reason for why we were doing this, and now it's apparently causing serious problems, so if *not* having this causes problems, we get to solve them the right way this time. llvm-svn: 125627
Diffstat (limited to 'clang/test/CodeGenObjC/objc2-weak-block-call.m')
-rw-r--r--clang/test/CodeGenObjC/objc2-weak-block-call.m13
1 files changed, 4 insertions, 9 deletions
diff --git a/clang/test/CodeGenObjC/objc2-weak-block-call.m b/clang/test/CodeGenObjC/objc2-weak-block-call.m
index 4f7b554f454..8cd233e286b 100644
--- a/clang/test/CodeGenObjC/objc2-weak-block-call.m
+++ b/clang/test/CodeGenObjC/objc2-weak-block-call.m
@@ -1,7 +1,5 @@
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -S %s -o %t-64.s
-// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -S %s -o %t-32.s
-// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck -check-prefix LP64 %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -emit-llvm %s -o - | FileCheck -check-prefix LP64 %s
@interface MyView
- (void)MyView_sharedInit;
@@ -21,9 +19,6 @@ void foo(MyView *(^obj)(void)) ;
}
@end
-// CHECK-LP64: callq _objc_read_weak
-// CHECK-LP64: callq _objc_read_weak
-
-// CHECK-LP32: calll L_objc_read_weak
-// CHECK-LP32: calll L_objc_read_weak
+// CHECK-LP64: call i8* @objc_read_weak
+// CHECK-LP32: call i8* @objc_read_weak
OpenPOWER on IntegriCloud