diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-02-15 14:15:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-02-15 14:15:59 +0000 |
commit | 91cbcbb90972de069c5077490c987dbe0fe59dac (patch) | |
tree | 9cacfacb87a58494d8de92eac54b6b0f85447a2f /llvm/lib/Target/PowerPC | |
parent | 9b7d4004bcd708be25036585fbd5409a4ddd181c (diff) | |
download | bcm5719-llvm-91cbcbb90972de069c5077490c987dbe0fe59dac.tar.gz bcm5719-llvm-91cbcbb90972de069c5077490c987dbe0fe59dac.zip |
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.
llvm-svn: 175268
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCJITInfo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp index bf2e30339f0..79d0c1fabee 100644 --- a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp @@ -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; |