Remove a confusing use of a static method.

No functionality change.

llvm-svn: 209548
This commit is contained in:
Rafael Espindola 2014-05-23 20:35:47 +00:00
parent 169ffe41af
commit d246759973
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ getGlobalAddressWrapper(SDValue GA, const GlobalValue *GV,
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);