--- llvm-9999/lib/Target/PowerPC/PPCJITInfo.cpp.orig 2012-04-02 13:28:36.468990143 +0900 +++ llvm-9999/lib/Target/PowerPC/PPCJITInfo.cpp 2012-04-02 13:29:51.575763189 +0900 @@ -68,6 +68,9 @@ } } +static void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4, + unsigned *OrigCallAddrPlus4, + bool is64Bit); extern "C" void PPC32CompilationCallback(); extern "C" void PPC64CompilationCallback(); @@ -291,9 +294,9 @@ } #endif -extern "C" void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4, - unsigned *OrigCallAddrPlus4, - bool is64Bit) { +static void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4, + unsigned *OrigCallAddrPlus4, + bool is64Bit) { // Adjust the pointer to the address of the call instruction in the stub // emitted by emitFunctionStub, rather than the instruction after it. unsigned *StubCallAddr = StubCallAddrPlus4 - 1;