aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-02-17 14:30:32 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-02-17 14:30:32 +0000
commita79cbb12324db93236e06cc820f0e36ea1f7e4c4 (patch)
treef43960dba2edca88f0b6a670d1d3f74db1858be7
parent680c98f6323dde0eae566710ea49497e16499653 (diff)
downloadexternal_llvm-a79cbb12324db93236e06cc820f0e36ea1f7e4c4.zip
external_llvm-a79cbb12324db93236e06cc820f0e36ea1f7e4c4.tar.gz
external_llvm-a79cbb12324db93236e06cc820f0e36ea1f7e4c4.tar.bz2
Make the visibility of LLVMPPCCompilationCallback work with GCC.
GCC warns about the attribute being ignored if it occurs after void*. There seems to be some kind of incompatibility between clang and gcc here, but I can't fathom who's right. void* LLVM_LIBRARY_VISIBILITY foo(); // clang: hidden, gcc: default LLVM_LIBRARY_VISIBILITY void *bar(); // clang: hidden, gcc: hidden void LLVM_LIBRARY_VISIBILITY qux(); // clang: hidden, gcc: hidden git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175394 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCJITInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp
index 79d0c1f..cfcd749 100644
--- a/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/lib/Target/PowerPC/PPCJITInfo.cpp
@@ -292,7 +292,7 @@ void PPC64CompilationCallback() {
#endif
extern "C" {
-void* LLVM_LIBRARY_VISIBILITY
+LLVM_LIBRARY_VISIBILITY void *
LLVMPPCCompilationCallback(unsigned *StubCallAddrPlus4,
unsigned *OrigCallAddrPlus4,
bool is64Bit) {