summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-23 20:35:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-23 20:35:47 +0000
commitd246759973b251eb160e5c9288d61ecae75b836e (patch)
tree0692405336ac5e060c1bfac96643ad2d734d9e02 /llvm/lib/Target/XCore
parent169ffe41affece998de11f33b2ce0b8d191754b7 (diff)
downloadbcm5719-llvm-d246759973b251eb160e5c9288d61ecae75b836e.tar.gz
bcm5719-llvm-d246759973b251eb160e5c9288d61ecae75b836e.zip
Remove a confusing use of a static method.
No functionality change. llvm-svn: 209548
Diffstat (limited to 'llvm/lib/Target/XCore')
-rw-r--r--llvm/lib/Target/XCore/XCoreISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
index 638d8701fad..3c892b162a4 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
@@ -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);
OpenPOWER on IntegriCloud