[llvm-commits] [llvm] r164155 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Roman Divacky
rdivacky at freebsd.org
Tue Sep 18 11:27:49 PDT 2012
Author: rdivacky
Date: Tue Sep 18 13:27:49 2012
New Revision: 164155
URL: http://llvm.org/viewvc/llvm-project?rev=164155&view=rev
Log:
Fix the isLocalCall() by checking for linker weakness as well.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=164155&r1=164154&r2=164155&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Tue Sep 18 13:27:49 2012
@@ -2812,7 +2812,8 @@
bool isLocalCall(const SDValue &Callee)
{
if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
- return !G->getGlobal()->isDeclaration();
+ return !G->getGlobal()->isDeclaration() &&
+ !G->getGlobal()->isWeakForLinker();
return false;
}
More information about the llvm-commits
mailing list