aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Interpreter.cpp
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 /lib/ExecutionEngine/Interpreter/Interpreter.cpp
parent7d8fab9ecaabc726c340d26b62f9b0cc3f18b62a (diff)
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 'lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.cpp3
1 files changed, 2 insertions, 1 deletions
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<std::string> &Args) {
+ const std::vector<std::string> &Args,
+ const char ** envp) {
// Start interpreter into the main function...
//
if (!callMainFunction(MainFunction, Args) && !Debug) {