[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 faf9f11589
commit 9b8e7a9d7d
1 changed files with 1 additions and 1 deletions

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) {