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:
Rafael Espindola 2013-02-14 01:58:08 +00:00
parent 1159c1f3f0
commit cd4cd16ea7

View File

@ -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