Skip to content

Commit 9b8e7a9

Browse files
committed
[lli] Honor the --entry-function flag in orc and orc-lazy modes.
Fixes https://llvm.org/PR49906.
1 parent faf9f11 commit 9b8e7a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/lli/lli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ int runOrcJIT(const char *ProgName) {
10661066
}
10671067

10681068
// Resolve and run the main function.
1069-
JITEvaluatedSymbol MainSym = ExitOnErr(J->lookup("main"));
1069+
JITEvaluatedSymbol MainSym = ExitOnErr(J->lookup(EntryFunc));
10701070
int Result;
10711071

10721072
if (TPC) {

0 commit comments

Comments
 (0)