Rename 'run' to 'runFunction' to emphasize that it is usable to run any
authorChris Lattner <sabre@nondot.org>
Fri, 26 Dec 2003 06:12:25 +0000 (06:12 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Dec 2003 06:12:25 +0000 (06:12 +0000)
function in a module, not just main

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10608 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h

index ba6a6e1cc06d60e0c91118ca013de7eecdf6d607..b3f4f9fb4518cfe319aefb36b19ce55cbf25fecb 100644 (file)
@@ -53,14 +53,16 @@ public:
   Module &getModule() const { return CurMod; }
   const TargetData &getTargetData() const { return *TD; }
 
-  /// run - Start execution with the specified function, arguments, and
-  ///       environment.
-  ///
-  virtual GenericValue run(Function *F,
-                           const std::vector<GenericValue> &ArgValues) = 0;
-
+  /// create - This is the factory method for creating an execution engine which
+  /// is appropriate for the current machine.
   static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter);
 
+  /// runFunction - Execute the specified function with the specified arguments,
+  /// and return the result.
+  ///
+  virtual GenericValue runFunction(Function *F,
+                                const std::vector<GenericValue> &ArgValues) = 0;
+
   void addGlobalMapping(const GlobalValue *GV, void *Addr) {
     void *&CurVal = GlobalAddress[GV];
     assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");