diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-17 14:30:32 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-17 14:30:32 +0000 |
commit | de712b788b0ba9b8bc81001038b28d1c974c071c (patch) | |
tree | 8c2b7acb3559cb9cc8b031d04829d093e4aaa1f8 /llvm/lib/Target | |
parent | 24955967926ea5bb5a16058707fc113e2cdcd7ab (diff) | |
download | bcm5719-llvm-de712b788b0ba9b8bc81001038b28d1c974c071c.tar.gz bcm5719-llvm-de712b788b0ba9b8bc81001038b28d1c974c071c.zip |
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
llvm-svn: 175394
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCJITInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp index 79d0c1fabee..cfcd7490ed0 100644 --- a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/llvm/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) { |