[llvm] r209550 - clang-format function.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 23 13:39:23 PDT 2014
Author: rafael
Date: Fri May 23 15:39:23 2014
New Revision: 209550
URL: http://llvm.org/viewvc/llvm-project?rev=209550&view=rev
Log:
clang-format function.
Modified:
llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
Modified: llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp?rev=209550&r1=209549&r2=209550&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp Fri May 23 15:39:23 2014
@@ -268,10 +268,9 @@ LowerSELECT_CC(SDValue Op, SelectionDAG
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;
@@ -279,10 +278,9 @@ getGlobalAddressWrapper(SDValue GA, cons
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);
}
More information about the llvm-commits
mailing list