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
This commit is contained in:
John Criswell
2003-08-21 21:12:30 +00:00
parent 7d8fab9eca
commit 69582b35b6
7 changed files with 41 additions and 11 deletions
+2 -2
View File
@@ -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;