mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-24 20:44:51 +00:00
Don't asume that a static function in an extern "C" block will not be mangled.
Since functions with internal linkage don't have language linkage, it is valid to overload them: extern "C" { static int foo(); static int foo(int); } So we mangle them. llvm-svn: 175120
This commit is contained in:
parent
1159c1f3f0
commit
cd4cd16ea7
@ -292,7 +292,7 @@ void PPC64CompilationCallback() {
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
static void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||
void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
|
||||
unsigned *OrigCallAddrPlus4,
|
||||
bool is64Bit) {
|
||||
// Adjust the pointer to the address of the call instruction in the stub
|
||||
|
Loading…
Reference in New Issue
Block a user