New method
authorChris Lattner <sabre@nondot.org>
Fri, 26 Dec 2003 06:50:15 +0000 (06:50 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Dec 2003 06:50:15 +0000 (06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10615 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h

index b3f4f9fb4518cfe319aefb36b19ce55cbf25fecb..c376ef71b7ed039df4d4b5513fcbe07100c9865a 100644 (file)
@@ -63,6 +63,13 @@ public:
   virtual GenericValue runFunction(Function *F,
                                 const std::vector<GenericValue> &ArgValues) = 0;
 
+  /// runFunctionAsMain - This is a helper function which wraps runFunction to
+  /// handle the common task of starting up main with the specified argc, argv,
+  /// and envp parameters.
+  int runFunctionAsMain(Function *Fn, const std::vector<std::string> &argv,
+                        const char * const * envp);
+
+
   void addGlobalMapping(const GlobalValue *GV, void *Addr) {
     void *&CurVal = GlobalAddress[GV];
     assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");