1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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 f42895705f
commit 4292852534

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);