summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCJITInfo.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-15 14:15:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-15 14:15:59 +0000
commit8a8a2dcae054a7b4dfea360b9b88e6be53fda40f (patch)
treef7389bae56dcf18ebb391c9ea3b48b8477e2a713 /lib/Target/PowerPC/PPCJITInfo.cpp
parent9fa05f98e0e8410bc8c5e4000e0d47880f8b37c4 (diff)
downloadllvm-8a8a2dcae054a7b4dfea360b9b88e6be53fda40f.tar.gz
llvm-8a8a2dcae054a7b4dfea360b9b88e6be53fda40f.tar.bz2
llvm-8a8a2dcae054a7b4dfea360b9b88e6be53fda40f.tar.xz
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
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCJITInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp
index bf2e30339f..79d0c1fabe 100644
--- a/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/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;