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

View File

@@ -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) {

View File

@@ -97,7 +97,8 @@ public:
/// run - Start execution with the specified function and arguments.
///
virtual int run(const std::string &FnName,
const std::vector<std::string> &Args);
const std::vector<std::string> &Args,
const char ** envp);
// enableProfiling() - Turn profiling on, clear stats?