forked from OSchip/llvm-project
Remove a confusing use of a static method.
No functionality change. llvm-svn: 209548
This commit is contained in:
parent
169ffe41af
commit
d246759973
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue