summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d4e85d)
raw | patch | inline | side by side (parent: 0d4e85d)
author | Rafael Espindola <rafael.espindola@gmail.com> | |
Fri, 23 May 2014 20:39:23 +0000 (20:39 +0000) | ||
committer | Rafael Espindola <rafael.espindola@gmail.com> | |
Fri, 23 May 2014 20:39:23 +0000 (20:39 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209550 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreISelLowering.cpp | patch | blob | history |
index 3c892b162a4e845fd36cf705b752e1b0a53e796e..9d785864952b7c5e19d99bd70660d219d1e8344a 100644 (file)
Op.getOperand(1));
}
-SDValue XCoreTargetLowering::
-getGlobalAddressWrapper(SDValue GA, const GlobalValue *GV,
- SelectionDAG &DAG) const
-{
+SDValue XCoreTargetLowering::getGlobalAddressWrapper(SDValue GA,
+ const GlobalValue *GV,
+ SelectionDAG &DAG) const {
// FIXME there is no actual debug info here
SDLoc dl(GA);
const GlobalValue *UnderlyingGV = GV;
if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV))
UnderlyingGV = GA->getAliasee();
if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(UnderlyingGV)) {
- if ( ( GVar->isConstant() &&
- GV->hasLocalLinkage() )
- || ( GVar->hasSection() &&
- StringRef(GVar->getSection()).startswith(".cp.") ) )
+ if ((GVar->isConstant() && GV->hasLocalLinkage()) ||
+ (GVar->hasSection() &&
+ StringRef(GVar->getSection()).startswith(".cp.")))
return DAG.getNode(XCoreISD::CPRelativeWrapper, dl, MVT::i32, GA);
return DAG.getNode(XCoreISD::DPRelativeWrapper, dl, MVT::i32, GA);
}