Don't asume that a static function in an extern "C" block will not be mangled.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 14 Feb 2013 01:58:08 +0000 (01:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 14 Feb 2013 01:58:08 +0000 (01:58 +0000)
commit764993493c73b8dc8dbdc4f650aa7357d6be6341
treeea28801eef5841db3eab5f7877d86a554c229bca
parent5bda63f16bd4cc418319d760d1d7274f8c5101e3
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
llvm/lib/Target/PowerPC/PPCJITInfo.cpp