[llvm] 144cd87 - RuntimeLibcalls: Remove target check for sjlj config (#148792)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 3 22:15:56 PDT 2025
Author: Matt Arsenault
Date: 2025-08-04T14:15:53+09:00
New Revision: 144cd87088dc82263b25e816c77fc03f29fd1288
URL: https://github.com/llvm/llvm-project/commit/144cd87088dc82263b25e816c77fc03f29fd1288
DIFF: https://github.com/llvm/llvm-project/commit/144cd87088dc82263b25e816c77fc03f29fd1288.diff
LOG: RuntimeLibcalls: Remove target check for sjlj config (#148792)
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.
Added:
Modified:
llvm/lib/IR/RuntimeLibcalls.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index bfe2a3d6af867..1ba2fa7f93b03 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -73,10 +73,8 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
EABI EABIVersion, StringRef ABIName) {
setTargetRuntimeLibcallSets(TT, FloatABI);
- if (TT.isX86() || TT.isVE() || TT.isARM() || TT.isThumb()) {
- if (ExceptionModel == ExceptionHandling::SjLj)
- setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
- }
+ if (ExceptionModel == ExceptionHandling::SjLj)
+ setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
if (TT.isOSOpenBSD())
setLibcallImpl(RTLIB::STACK_SMASH_HANDLER, RTLIB::__stack_smash_handler);
More information about the llvm-commits
mailing list