diff options
author | Tim Northover <tnorthover@apple.com> | 2015-10-28 22:56:36 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2015-10-28 22:56:36 +0000 |
commit | f8e47e4868270ee1bea61a5b64f3df5153262a08 (patch) | |
tree | adb4e7c6c66481f3cd0c2d4ee0d01aec0fef532a /llvm/lib/Target/ARM/ARMISelLowering.cpp | |
parent | 2253d1c0525d2a30c0a9e6e26237dabc6237b9b4 (diff) | |
download | bcm5719-llvm-f8e47e4868270ee1bea61a5b64f3df5153262a08.tar.gz bcm5719-llvm-f8e47e4868270ee1bea61a5b64f3df5153262a08.zip |
ARM: add support for WatchOS's compact unwind information.
llvm-svn: 251573
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index c8d34a23b48..13f528517f1 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -813,9 +813,9 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM, setOperationAction(ISD::STACKSAVE, MVT::Other, Expand); setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand); - if (!Subtarget->isTargetMachO()) { - // Non-MachO platforms may return values in these registers via the - // personality function. + if (!Subtarget->useSjLjEH()) { + // Platforms which do not use SjLj EH may return values in these registers + // via the personality function. setExceptionPointerRegister(ARM::R0); setExceptionSelectorRegister(ARM::R1); } @@ -889,7 +889,7 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM, setOperationAction(ISD::EH_SJLJ_SETJMP, MVT::i32, Custom); setOperationAction(ISD::EH_SJLJ_LONGJMP, MVT::Other, Custom); setOperationAction(ISD::EH_SJLJ_SETUP_DISPATCH, MVT::Other, Custom); - if (Subtarget->isTargetDarwin()) + if (Subtarget->useSjLjEH()) setLibcallName(RTLIB::UNWIND_RESUME, "_Unwind_SjLj_Resume"); setOperationAction(ISD::SETCC, MVT::i32, Expand); |