summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-10-16 04:08:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-10-16 04:08:16 +0000
commit90bb5c231501ffa6d293677346e786afcf080ccf (patch)
treec07b7dce361d3c77d2f19d644179eb3482432548 /clang/test
parent44436302fb9687c6f9662be0f40b2f08f46c2b12 (diff)
downloadbcm5719-llvm-90bb5c231501ffa6d293677346e786afcf080ccf.tar.gz
bcm5719-llvm-90bb5c231501ffa6d293677346e786afcf080ccf.zip
IRgen/Obj-C/NeXT: Fix the IR signature for objc_exception_rethrow, so we don't
generate unnecessary %al clear on x86_64. llvm-svn: 116656
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenObjC/method-signatures.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/method-signatures.m b/clang/test/CodeGenObjC/method-signatures.m
new file mode 100644
index 00000000000..b03570950a2
--- /dev/null
+++ b/clang/test/CodeGenObjC/method-signatures.m
@@ -0,0 +1,14 @@
+// Check method signatures for synthesized runtime functions.
+//
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 \
+// RUN: -fexceptions -fobjc-nonfragile-abi2 -emit-llvm -o %t %s
+// RUN: FileCheck < %t %s
+
+// CHECK: declare void @objc_exception_rethrow()
+void f1(void);
+void f0() {
+ @try {
+ f1();
+ } @finally {
+ }
+}
OpenPOWER on IntegriCloud