Skip to content

Commit 204630d

Browse files
committed
RuntimeLibcalls: Remove target check for sjlj config
I'm assuming this was the set of targets that were relevant for sjlj handling. Just take the raw exception setting instead, and assume it makes sense for the target.
1 parent dfa00ac commit 204630d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/IR/RuntimeLibcalls.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
7373
EABI EABIVersion, StringRef ABIName) {
7474
setTargetRuntimeLibcallSets(TT, FloatABI);
7575

76-
if (TT.isX86() || TT.isVE() || TT.isARM() || TT.isThumb()) {
77-
if (ExceptionModel == ExceptionHandling::SjLj)
78-
setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
79-
}
76+
if (ExceptionModel == ExceptionHandling::SjLj)
77+
setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
8078

8179
if (TT.isOSOpenBSD())
8280
setLibcallImpl(RTLIB::STACK_SMASH_HANDLER, RTLIB::__stack_smash_handler);

0 commit comments

Comments
 (0)