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 --- lib/ExecutionEngine/Interpreter/Interpreter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.cpp') diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 3453d83195..4fdd6a1be7 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -40,7 +40,8 @@ Interpreter::Interpreter(Module *M, unsigned Config, /// run - Start execution with the specified function and arguments. /// int Interpreter::run(const std::string &MainFunction, - const std::vector &Args) { + const std::vector &Args, + const char ** envp) { // Start interpreter into the main function... // if (!callMainFunction(MainFunction, Args) && !Debug) { -- cgit v1.2.3-18-g5258