aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-14 01:58:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-14 01:58:08 +0000
commit382a5530ec0682d8dd17f7d9212f52ace38460ed (patch)
tree906170375efca1b55de492fdca6726017b8e376b /lib
parentc0c2816fb3d137c096d0bd20b8ad2d92ce25a976 (diff)
downloadexternal_llvm-382a5530ec0682d8dd17f7d9212f52ace38460ed.zip
external_llvm-382a5530ec0682d8dd17f7d9212f52ace38460ed.tar.gz
external_llvm-382a5530ec0682d8dd17f7d9212f52ace38460ed.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/PPCJITInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp
index 851de17..df40cf1 100644
--- a/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/lib/Target/PowerPC/PPCJITInfo.cpp
@@ -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