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
@@ -41,10 +41,12 @@ public:
Module &getModule() const { return CurMod; }
const TargetData &getTargetData() const { return *TD; }
/// run - Start execution with the specified function and arguments.
/// run - Start execution with the specified function, arguments, and
/// environment.
///
virtual int run(const std::string &FnName,
const std::vector<std::string> &Args) = 0;
const std::vector<std::string> &Args,
const char ** envp) = 0;
/// createJIT - Create an return a new JIT compiler if there is one available
/// for the current target. Otherwise it returns null.