mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user