summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
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
commit764993493c73b8dc8dbdc4f650aa7357d6be6341 (patch)
treeea28801eef5841db3eab5f7877d86a554c229bca /llvm/lib/Target
parent5bda63f16bd4cc418319d760d1d7274f8c5101e3 (diff)
downloadbcm5719-llvm-764993493c73b8dc8dbdc4f650aa7357d6be6341.tar.gz
bcm5719-llvm-764993493c73b8dc8dbdc4f650aa7357d6be6341.zip
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
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCJITInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
index 851de1778a9..df40cf18724 100644
--- a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud