Remove a confusing use of a static method.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 May 2014 20:35:47 +0000 (20:35 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 May 2014 20:35:47 +0000 (20:35 +0000)
No functionality change.

llvm-svn: 209548

llvm/lib/Target/XCore/XCoreISelLowering.cpp

index 638d870..3c892b1 100644 (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);