Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit cb5320e

Browse files
committed
emit a 'maybe ftCall' in relocatable modules, to support optimizing inner-module function pointer calls
1 parent 9c2130f commit cb5320e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/JSBackend/CallHandlers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ DEF_CALL_HANDLER(__default__, {
8080
Name = std::string("FUNCTION_TABLE_") + Sig + "[" + Name + " & #FM_" + Sig + "#]";
8181
NeedCasts = false; // function table call, so stays in asm module
8282
} else {
83-
Name = std::string("ftCall_") + Sig + "(" + getCast(Name, Type::getInt32Ty(CI->getContext()));
83+
Name = std::string(Relocatable ? "mftCall_" : "ftCall_") + Sig + "(" + getCast(Name, Type::getInt32Ty(CI->getContext()));
8484
if (NumArgs > 0) Name += ',';
8585
Emulated = true;
8686
}

0 commit comments

Comments
 (0)