mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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:
@@ -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) {
|
||||
|
@@ -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?
|
||||
|
Reference in New Issue
Block a user