mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-08 04:52:50 +00:00
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
This commit is contained in:
parent
ae13f23de6
commit
0d4e85d19d
@ -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
Block a user