Skip to content

Commit ed4c2aa

Browse files
committed
RuntimeLibcalls: Add entries for some exception related functions
SjLjEHPrepare and WasmEHPrepare directly emit calls to these by name, and these are not tracked in RuntimeLibcalls. It will be easier to fix this when RuntimeLibcalls is turned into an analysis, so just add the entries for now.
1 parent 927865a commit ed4c2aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ foreach MemSize = [1, 2, 4, 8, 16] in {
263263

264264
// Exception handling
265265
def UNWIND_RESUME : RuntimeLibcall;
266+
def UNWIND_REGISTER : RuntimeLibcall;
267+
def UNWIND_UNREGISTER : RuntimeLibcall;
268+
def UNWIND_CALL_PERSONALITY : RuntimeLibcall;
266269
def CXA_END_CLEANUP : RuntimeLibcall;
267270

268271
// Note: there are two sets of atomics libcalls; see
@@ -918,6 +921,9 @@ defm sincos : LibmLongDoubleLibCall;
918921
def bzero : RuntimeLibcallImpl<BZERO>;
919922
def __bzero : RuntimeLibcallImpl<BZERO>;
920923
def _Unwind_SjLj_Resume : RuntimeLibcallImpl<UNWIND_RESUME>;
924+
def _Unwind_SjLj_Register : RuntimeLibcallImpl<UNWIND_REGISTER>;
925+
def _Unwind_SjLj_Unregister : RuntimeLibcallImpl<UNWIND_UNREGISTER>;
926+
def _Unwind_CallPersonality : RuntimeLibcallImpl<UNWIND_CALL_PERSONALITY>;
921927

922928
// Used on OpenBSD
923929
def __stack_smash_handler : RuntimeLibcallImpl<STACK_SMASH_HANDLER>;

0 commit comments

Comments
 (0)