diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-07-07 00:07:57 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-07-07 00:07:57 +0000 |
commit | ebb6efb9531854b8daa1eeb24255753db2a225ae (patch) | |
tree | 3e83ecab244cbbb2e23bb473925d408d9962a41c /lib | |
parent | f698c418d4e0ff52136f6f9d6f7cb2b83ee96de3 (diff) | |
download | external_llvm-ebb6efb9531854b8daa1eeb24255753db2a225ae.tar.gz external_llvm-ebb6efb9531854b8daa1eeb24255753db2a225ae.tar.bz2 external_llvm-ebb6efb9531854b8daa1eeb24255753db2a225ae.zip |
Mark eh.sjlj.set/longjmp custom lowerings as Darwin-only since that's where
they've been tested to work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 7f9ce72ed2..dc08e7c961 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/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); |