forked from OSchip/llvm-project
[lli] Honor the --entry-function flag in orc and orc-lazy modes.
Fixes https://llvm.org/PR49906.
This commit is contained in:
parent
faf9f11589
commit
9b8e7a9d7d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue