mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153938 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -291,7 +291,8 @@ void PPC64CompilationCallback() {
|
||||
}
|
||||
#endif
|
||||
|
||||
extern "C" void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||
extern "C" {
|
||||
static void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||
unsigned *OrigCallAddrPlus4,
|
||||
bool is64Bit) {
|
||||
// Adjust the pointer to the address of the call instruction in the stub
|
||||
@@ -337,6 +338,7 @@ extern "C" void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||
// stack after we restore all regs.
|
||||
return Target;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user