Skip to content

Commit 562bee8

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 9ae77cd commit 562bee8

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
@@ -286,6 +286,9 @@ foreach MemSize = [1, 2, 4, 8, 16] in {
286286

287287
// Exception handling
288288
def UNWIND_RESUME : RuntimeLibcall;
289+
def UNWIND_REGISTER : RuntimeLibcall;
290+
def UNWIND_UNREGISTER : RuntimeLibcall;
291+
def UNWIND_CALL_PERSONALITY : RuntimeLibcall;
289292
def CXA_END_CLEANUP : RuntimeLibcall;
290293

291294
// Note: there are two sets of atomics libcalls; see
@@ -987,6 +990,9 @@ defm sincos : LibmLongDoubleLibCall;
987990
def bzero : RuntimeLibcallImpl<BZERO>;
988991
def __bzero : RuntimeLibcallImpl<BZERO>;
989992
def _Unwind_SjLj_Resume : RuntimeLibcallImpl<UNWIND_RESUME>;
993+
def _Unwind_SjLj_Register : RuntimeLibcallImpl<UNWIND_REGISTER>;
994+
def _Unwind_SjLj_Unregister : RuntimeLibcallImpl<UNWIND_UNREGISTER>;
995+
def _Unwind_CallPersonality : RuntimeLibcallImpl<UNWIND_CALL_PERSONALITY>;
990996

991997
// Used on OpenBSD
992998
def __stack_smash_handler : RuntimeLibcallImpl<STACK_SMASH_HANDLER>;

0 commit comments

Comments
 (0)