summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/ehabi-no-landingpad.ll
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2012-11-14 19:13:30 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2012-11-14 19:13:30 +0000
commit062a6c8380efc74233d05ec895def51b01aa2f8f (patch)
tree2a67b36775107d753929d31cece6ca7d33c39219 /test/CodeGen/ARM/ehabi-no-landingpad.ll
parent2d80fb22b709fc2bea724a63920a0fe10db3c883 (diff)
downloadllvm-062a6c8380efc74233d05ec895def51b01aa2f8f.tar.gz
llvm-062a6c8380efc74233d05ec895def51b01aa2f8f.tar.bz2
llvm-062a6c8380efc74233d05ec895def51b01aa2f8f.tar.xz
Fix really stupid ARM EHABI info generation bug: we should not emit
eh table and handler data if there are no landing pads in the function. Patch by Logan Chien with some cleanups from me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/ehabi-no-landingpad.ll')
-rw-r--r--test/CodeGen/ARM/ehabi-no-landingpad.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/ehabi-no-landingpad.ll b/test/CodeGen/ARM/ehabi-no-landingpad.ll
new file mode 100644
index 0000000000..ac0dff421a
--- /dev/null
+++ b/test/CodeGen/ARM/ehabi-no-landingpad.ll
@@ -0,0 +1,18 @@
+; RUN: llc < %s -mtriple=armv7-unknown-linux-gnueabi \
+; RUN: -arm-enable-ehabi -arm-enable-ehabi-descriptors | FileCheck %s
+
+target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S64"
+target triple = "armv7-unknown-linux-gnueabi"
+
+define void @_Z4testv() {
+; CHECK: _Z4testv
+; CHECK: .fnstart
+; CHECK: .size
+; CHECK-NOT: .handlerdata
+; CHECK: .fnend
+entry:
+ call void @_Z15throw_exceptionv()
+ ret void
+}
+
+declare void @_Z15throw_exceptionv()