[lli] Honor the --entry-function flag in orc and orc-lazy modes.
Fixes https://llvm.org/PR49906.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user