summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-08-21 21:12:30 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-08-21 21:12:30 +0000
commit69582b35b6aa4e48cbbad7f6f1193c967da96b25 (patch)
tree0578d58ee787e1028f92db05ff4c1a821478a9fc /tools/lli
parent7d8fab9ecaabc726c340d26b62f9b0cc3f18b62a (diff)
downloadllvm-69582b35b6aa4e48cbbad7f6f1193c967da96b25.tar.gz
llvm-69582b35b6aa4e48cbbad7f6f1193c967da96b25.tar.bz2
llvm-69582b35b6aa4e48cbbad7f6f1193c967da96b25.tar.xz
The JIT now passes the environment pointer to the main() function when it
starts a program. This allows the GNU env program to compile and JIT under LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index a69f53c98a..7a0925deec 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -46,7 +46,7 @@ ExecutionEngine::~ExecutionEngine() {
//===----------------------------------------------------------------------===//
// main Driver function
//
-int main(int argc, char** argv) {
+int main(int argc, char** argv, const char ** envp) {
cl::ParseCommandLineOptions(argc, argv,
" llvm interpreter & dynamic compiler\n");
@@ -98,7 +98,7 @@ int main(int argc, char** argv) {
InputArgv.insert(InputArgv.begin(), InputFile);
// Run the main function!
- int ExitCode = EE->run(MainFunction, InputArgv);
+ int ExitCode = EE->run(MainFunction, InputArgv, envp);
// Now that we are done executing the program, shut down the execution engine
delete EE;