llvm.org GIT mirror llvm / 0d4e85d
Remove a confusing use of a static method. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209548 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
279279 UnderlyingGV = GA->getAliasee();
280280 if (const GlobalVariable *GVar = dyn_cast(UnderlyingGV)) {
281281 if ( ( GVar->isConstant() &&
282 UnderlyingGV->isLocalLinkage(GV->getLinkage()) )
282 GV->hasLocalLinkage() )
283283 || ( GVar->hasSection() &&
284284 StringRef(GVar->getSection()).startswith(".cp.") ) )
285285 return DAG.getNode(XCoreISD::CPRelativeWrapper, dl, MVT::i32, GA);