Make PPCCompilationCallbackC function to be static, so there will be no need to issue call via
PLT when LLVM is built as shared library. This mimics the X86 backend towards the approach. llvm-svn: 153938
This commit is contained in:
parent
9c252ebe4c
commit
325e92668b
|
@ -291,9 +291,10 @@ void PPC64CompilationCallback() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
extern "C" {
|
||||||
unsigned *OrigCallAddrPlus4,
|
static void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||||
bool is64Bit) {
|
unsigned *OrigCallAddrPlus4,
|
||||||
|
bool is64Bit) {
|
||||||
// Adjust the pointer to the address of the call instruction in the stub
|
// Adjust the pointer to the address of the call instruction in the stub
|
||||||
// emitted by emitFunctionStub, rather than the instruction after it.
|
// emitted by emitFunctionStub, rather than the instruction after it.
|
||||||
unsigned *StubCallAddr = StubCallAddrPlus4 - 1;
|
unsigned *StubCallAddr = StubCallAddrPlus4 - 1;
|
||||||
|
@ -337,6 +338,7 @@ extern "C" void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||||
// stack after we restore all regs.
|
// stack after we restore all regs.
|
||||||
return Target;
|
return Target;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue