Add support for function stubs, which allow calling functions which need to

have an address available, but have not yet been code generated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6059 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-05-09 03:30:07 +00:00
parent 70bca51f92
commit 6125fddb52
5 changed files with 81 additions and 8 deletions

View File

@@ -60,6 +60,14 @@ private:
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