diff options
author | John Criswell <criswell@uiuc.edu> | 2003-08-21 21:12:30 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-08-21 21:12:30 +0000 |
commit | 71c3e6236febeda842adbf411e05463fb021159d (patch) | |
tree | b2c989e01108583b8f4aab194fad1ae7c27b046e /llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | |
parent | e08478eb59028f370b6c7a0da6ccce45c090e3eb (diff) | |
download | bcm5719-llvm-71c3e6236febeda842adbf411e05463fb021159d.tar.gz bcm5719-llvm-71c3e6236febeda842adbf411e05463fb021159d.zip |
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.
llvm-svn: 8022
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 3453d831957..4fdd6a1be7f 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/llvm/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) { |