aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ExecutionEngine/ExecutionEngine.h
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-08-21 21:12:30 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-08-21 21:12:30 +0000
commit69582b35b6aa4e48cbbad7f6f1193c967da96b25 (patch)
tree0578d58ee787e1028f92db05ff4c1a821478a9fc /include/llvm/ExecutionEngine/ExecutionEngine.h
parent7d8fab9ecaabc726c340d26b62f9b0cc3f18b62a (diff)
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
Diffstat (limited to 'include/llvm/ExecutionEngine/ExecutionEngine.h')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index 852e48eb88..45f7a274d0 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -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.