1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[lli] Honor the --entry-function flag in orc and orc-lazy modes.

Fixes https://llvm.org/PR49906.
This commit is contained in:
Lang Hames 2021-04-13 11:26:57 -07:00
parent a79b75d192
commit 896ef1df5d

View File

@ -1066,7 +1066,7 @@ int runOrcJIT(const char *ProgName) {
}
// Resolve and run the main function.
JITEvaluatedSymbol MainSym = ExitOnErr(J->lookup("main"));
JITEvaluatedSymbol MainSym = ExitOnErr(J->lookup(EntryFunc));
int Result;
if (TPC) {