Add support for function stubs, which allow calling functions which need to
have an address available, but have not yet been code generated.
llvm-svn: 6059
diff --git a/llvm/lib/ExecutionEngine/JIT/VM.h b/llvm/lib/ExecutionEngine/JIT/VM.h
index 9080b3b..17c4ddd 100644
--- a/llvm/lib/ExecutionEngine/JIT/VM.h
+++ b/llvm/lib/ExecutionEngine/JIT/VM.h
@@ -60,6 +60,14 @@
void *getPointerToFunction(const Function *F);
void registerCallback();
+
+ /// emitStubForFunction - This method is used by the JIT when it needs to emit
+ /// the address of a function for a function whose code has not yet been
+ /// generated. In order to do this, it generates a stub which jumps to the
+ /// lazy function compiler, which will eventually get fixed to call the
+ /// function directly.
+ ///
+ void *emitStubForFunction(const Function &F);
};
#endif