Implement the ExecutionEngine::getPointerToFunctionOrStub by forwarding the
[oota-llvm.git] / lib / ExecutionEngine / JIT / VM.h
index 9a17c967c70c51dda91acedebd4cab151aaf44d3..dc820670af17685dbc6d2316feb75a32719cab8e 100644 (file)
@@ -66,6 +66,12 @@ public:
   ///
   void *getPointerToFunction(Function *F);
 
+  /// getPointerToFunctionOrStub - If the specified function has been
+  /// code-gen'd, return a pointer to the function.  If not, compile it, or use
+  /// a stub to implement lazy compilation if available.
+  ///
+  void *getPointerToFunctionOrStub(Function *F);
+
   /// recompileAndRelinkFunction - This method is used to force a function
   /// which has already been compiled, to be compiled again, possibly
   /// after it has been modified. Then the entry to the old copy is overwritten