[llvm] 9b8e7a9 - [lli] Honor the --entry-function flag in orc and orc-lazy modes.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 13 11:33:38 PDT 2021
Author: Lang Hames
Date: 2021-04-13T11:33:24-07:00
New Revision: 9b8e7a9d7dc7e3d2ae584b57ee9485fd94bda0c9
URL: https://github.com/llvm/llvm-project/commit/9b8e7a9d7dc7e3d2ae584b57ee9485fd94bda0c9
DIFF: https://github.com/llvm/llvm-project/commit/9b8e7a9d7dc7e3d2ae584b57ee9485fd94bda0c9.diff
LOG: [lli] Honor the --entry-function flag in orc and orc-lazy modes.
Fixes https://llvm.org/PR49906.
Added:
Modified:
llvm/tools/lli/lli.cpp
Removed:
################################################################################
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index a15b0ddc512bc..8908b43d71e53 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -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) {
More information about the llvm-commits
mailing list