From 69582b35b6aa4e48cbbad7f6f1193c967da96b25 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Thu, 21 Aug 2003 21:12:30 +0000 Subject: 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 --- tools/lli/lli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/lli') 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; -- cgit v1.2.3