mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
update interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16ec33c6ef
commit
908bc862d5
@ -27,7 +27,7 @@ namespace llvm {
|
||||
virtual void *emitFunctionStub(void *Fn, MachineCodeEmitter &MCE);
|
||||
virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn);
|
||||
virtual void relocate(void *Function, MachineRelocation *MR,
|
||||
unsigned NumRelocs);
|
||||
unsigned NumRelocs, unsigned char* GOTBase);
|
||||
|
||||
/// replaceMachineCodeForFunction - Make it so that calling the function
|
||||
/// whose machine code is at OLD turns into a call to NEW, perhaps by
|
||||
|
@ -188,7 +188,7 @@ void *PPC32JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
||||
|
||||
|
||||
void PPC32JITInfo::relocate(void *Function, MachineRelocation *MR,
|
||||
unsigned NumRelocs) {
|
||||
unsigned NumRelocs, unsigned char* GOTBase) {
|
||||
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
|
||||
unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4;
|
||||
intptr_t ResultPtr = (intptr_t)MR->getResultPointer();
|
||||
|
@ -323,7 +323,7 @@ SparcV9JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
||||
}
|
||||
|
||||
void SparcV9JITInfo::relocate(void *Function, MachineRelocation *MR,
|
||||
unsigned NumRelocs) {
|
||||
unsigned NumRelocs, unsigned char* GOTBase) {
|
||||
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
|
||||
unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4;
|
||||
intptr_t ResultPtr = (intptr_t)MR->getResultPointer();
|
||||
|
@ -55,7 +55,7 @@ namespace llvm {
|
||||
/// it must rewrite the code to contain the actual addresses of any
|
||||
/// referenced global symbols.
|
||||
virtual void relocate(void *Function, MachineRelocation *MR,
|
||||
unsigned NumRelocs);
|
||||
unsigned NumRelocs, unsigned char* GOTBase);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
||||
/// it must rewrite the code to contain the actual addresses of any
|
||||
/// referenced global symbols.
|
||||
void X86JITInfo::relocate(void *Function, MachineRelocation *MR,
|
||||
unsigned NumRelocs) {
|
||||
unsigned NumRelocs, unsigned char* GOTBase) {
|
||||
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
|
||||
void *RelocPos = (char*)Function + MR->getMachineCodeOffset();
|
||||
intptr_t ResultPtr = (intptr_t)MR->getResultPointer();
|
||||
|
@ -50,7 +50,7 @@ namespace llvm {
|
||||
/// it must rewrite the code to contain the actual addresses of any
|
||||
/// referenced global symbols.
|
||||
virtual void relocate(void *Function, MachineRelocation *MR,
|
||||
unsigned NumRelocs);
|
||||
unsigned NumRelocs, unsigned char* GOTBase);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user