Give these callbacks hidden visibility. It is better to not export them more

than we need to and some ELF linkers complain about directly accessing symbols
with default visibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-02-15 14:15:59 +00:00
parent 9fa05f98e0
commit 8a8a2dcae0
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -292,9 +292,10 @@ void PPC64CompilationCallback() {
#endif
extern "C" {
void* LLVMPPCCompilationCallback(unsigned *StubCallAddrPlus4,
unsigned *OrigCallAddrPlus4,
bool is64Bit) {
void* LLVM_LIBRARY_VISIBILITY
LLVMPPCCompilationCallback(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;