Mark eh.sjlj.set/longjmp custom lowerings as Darwin-only since that's where
authorJim Grosbach <grosbach@apple.com>
Wed, 7 Jul 2010 00:07:57 +0000 (00:07 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 7 Jul 2010 00:07:57 +0000 (00:07 +0000)
they've been tested to work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107742 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 7f9ce72ed24f03380f5aa287055926cb4e5d145b..dc08e7c961bf7333735f8704f0998c36d4bdad0f 100644 (file)
@@ -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);