mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
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
This commit is contained in:
parent
64d5855006
commit
5e957f2bca
@ -292,7 +292,7 @@ void PPC64CompilationCallback() {
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
void* LLVM_LIBRARY_VISIBILITY
|
||||
LLVM_LIBRARY_VISIBILITY void *
|
||||
LLVMPPCCompilationCallback(unsigned *StubCallAddrPlus4,
|
||||
unsigned *OrigCallAddrPlus4,
|
||||
bool is64Bit) {
|
||||
|
Loading…
Reference in New Issue
Block a user