mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user