[llvm-commits] CVS: llvm/tools/lli/Interpreter/Interpreter.cpp Interpreter.h

John Criswell criswell at cs.uiuc.edu
Thu Aug 21 16:13:12 PDT 2003


Changes in directory llvm/tools/lli/Interpreter:

Interpreter.cpp updated: 1.6 -> 1.7
Interpreter.h updated: 1.31 -> 1.32

---
Log message:

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.


---
Diffs of the changes:

Index: llvm/tools/lli/Interpreter/Interpreter.cpp
diff -u llvm/tools/lli/Interpreter/Interpreter.cpp:1.6 llvm/tools/lli/Interpreter/Interpreter.cpp:1.7
--- llvm/tools/lli/Interpreter/Interpreter.cpp:1.6	Wed May 14 09:21:30 2003
+++ llvm/tools/lli/Interpreter/Interpreter.cpp	Thu Aug 21 16:12:29 2003
@@ -40,7 +40,8 @@
 /// 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) {


Index: llvm/tools/lli/Interpreter/Interpreter.h
diff -u llvm/tools/lli/Interpreter/Interpreter.h:1.31 llvm/tools/lli/Interpreter/Interpreter.h:1.32
--- llvm/tools/lli/Interpreter/Interpreter.h:1.31	Wed Aug 13 13:17:54 2003
+++ llvm/tools/lli/Interpreter/Interpreter.h	Thu Aug 21 16:12:29 2003
@@ -97,7 +97,8 @@
   /// 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?





More information about the llvm-commits mailing list