Skip to content

Commit 8e04afa

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 4717482 commit 8e04afa

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
@@ -72,10 +72,8 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
7272
EABI EABIVersion, StringRef ABIName) {
7373
setTargetRuntimeLibcallSets(TT, FloatABI);
7474

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

8078
if (TT.isARM() || TT.isThumb()) {
8179
setARMLibcallNames(*this, TT, FloatABI, EABIVersion);

0 commit comments

Comments
 (0)