Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Make the visibility of LLVMPPCCompilationCallback work with GCC.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
d0k committed Feb 17, 2013
1 parent 680c98f commit a79cbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/PowerPC/PPCJITInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void PPC64CompilationCallback() {
#endif

extern "C" {
void* LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY void *
LLVMPPCCompilationCallback(unsigned *StubCallAddrPlus4,
unsigned *OrigCallAddrPlus4,
bool is64Bit) {
Expand Down

0 comments on commit a79cbb1

Please sign in to comment.