mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
X86 PIC JIT support fixes: encoding bugs, add lazy pointer stubs support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -40,6 +40,13 @@ namespace llvm {
|
||||
///
|
||||
virtual void replaceMachineCodeForFunction(void *Old, void *New) = 0;
|
||||
|
||||
/// emitGlobalValueLazyPtr - Use the specified MachineCodeEmitter object to
|
||||
/// emit a lazy pointer which contains the address of the specified GV.
|
||||
virtual void *emitGlobalValueLazyPtr(void *GV, MachineCodeEmitter &MCE) {
|
||||
assert(0 && "This target doesn't implement emitGlobalValueLazyPtr!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// emitFunctionStub - Use the specified MachineCodeEmitter object to emit a
|
||||
/// small native function that simply calls the function at the specified
|
||||
/// address. Return the address of the resultant function.
|
||||
|
Reference in New Issue
Block a user