summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-07-07 00:07:57 +0000
committerJim Grosbach <grosbach@apple.com>2010-07-07 00:07:57 +0000
commit319848385154c08e92a71324643633f8d08d49f4 (patch)
tree35ca69d30ddea6b0141cb0779412bcbc31574557
parentdce439d11dee1c37899e4d95a23c15144ea99e67 (diff)
downloadbcm5719-llvm-319848385154c08e92a71324643633f8d08d49f4.tar.gz
bcm5719-llvm-319848385154c08e92a71324643633f8d08d49f4.zip
Mark eh.sjlj.set/longjmp custom lowerings as Darwin-only since that's where
they've been tested to work. llvm-svn: 107742
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 7f9ce72ed24..dc08e7c961b 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -473,8 +473,10 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
// We want to custom lower some of our intrinsics.
setOperationAction(ISD::INTRINSIC_WO_CHAIN, MVT::Other, Custom);
- setOperationAction(ISD::EH_SJLJ_SETJMP, MVT::i32, Custom);
- setOperationAction(ISD::EH_SJLJ_LONGJMP, MVT::Other, Custom);
+ if (Subtarget->isTargetDarwin()) {
+ setOperationAction(ISD::EH_SJLJ_SETJMP, MVT::i32, Custom);
+ setOperationAction(ISD::EH_SJLJ_LONGJMP, MVT::Other, Custom);
+ }
setOperationAction(ISD::SETCC, MVT::i32, Expand);
setOperationAction(ISD::SETCC, MVT::f32, Expand);
OpenPOWER on IntegriCloud