[llvm] r209548 - Remove a confusing use of a static method.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 23 13:35:47 PDT 2014
Author: rafael
Date: Fri May 23 15:35:47 2014
New Revision: 209548
URL: http://llvm.org/viewvc/llvm-project?rev=209548&view=rev
Log:
Remove a confusing use of a static method.
No functionality change.
Modified:
llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
Modified: llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp?rev=209548&r1=209547&r2=209548&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp Fri May 23 15:35:47 2014
@@ -280,7 +280,7 @@ getGlobalAddressWrapper(SDValue GA, cons
UnderlyingGV = GA->getAliasee();
if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(UnderlyingGV)) {
if ( ( GVar->isConstant() &&
- UnderlyingGV->isLocalLinkage(GV->getLinkage()) )
+ GV->hasLocalLinkage() )
|| ( GVar->hasSection() &&
StringRef(GVar->getSection()).startswith(".cp.") ) )
return DAG.getNode(XCoreISD::CPRelativeWrapper, dl, MVT::i32, GA);
More information about the llvm-commits
mailing list