On Darwin ARM, set the UNWIND_RESUME libcall to _Unwind_SjLj_Resume.
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.cpp
index a78c3ed2a4ae3c54454e880a8347bab9d2177f2b..1e90d422bd35fe0a18d9f18e1b145106e92fee2a 100644 (file)
@@ -656,6 +656,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
     setOperationAction(ISD::EH_SJLJ_SETJMP, MVT::i32, Custom);
     setOperationAction(ISD::EH_SJLJ_LONGJMP, MVT::Other, Custom);
     setOperationAction(ISD::EH_SJLJ_DISPATCHSETUP, MVT::Other, Custom);
+    setLibcallName(RTLIB::UNWIND_RESUME, "_Unwind_SjLj_Resume");
   }
 
   setOperationAction(ISD::SETCC,     MVT::i32, Expand);