aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-06 07:02:28 +0000
committerChris Lattner <sabre@nondot.org>2010-03-06 07:02:28 +0000
commiteea3f7e4eeab2840b81d6c84ffdcca1477fbe265 (patch)
tree3d922d33d744010d53098afd5ea6c0fccb5d0de2 /lib/Target/Sparc
parent0a7f442314a317ad8a108467269c2ee67b69331a (diff)
downloadexternal_llvm-eea3f7e4eeab2840b81d6c84ffdcca1477fbe265.zip
external_llvm-eea3f7e4eeab2840b81d6c84ffdcca1477fbe265.tar.gz
external_llvm-eea3f7e4eeab2840b81d6c84ffdcca1477fbe265.tar.bz2
clean this up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r--lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
index d6b45be..f6753a6 100644
--- a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
+++ b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
@@ -204,9 +204,10 @@ bool SparcAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
/// isBlockOnlyReachableByFallthough - Return true if the basic block has
/// exactly one predecessor and the control transfer mechanism between
/// the predecessor and this block is a fall-through.
-/// Override AsmPrinter implementation to handle delay slots
-bool SparcAsmPrinter::isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB)
- const {
+///
+/// This overrides AsmPrinter's implementation to handle delay slots.
+bool SparcAsmPrinter::
+isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const {
// If this is a landing pad, it isn't a fall through. If it has no preds,
// then nothing falls through to it.
if (MBB->isLandingPad() || MBB->pred_empty())
@@ -224,10 +225,10 @@ bool SparcAsmPrinter::isBlockOnlyReachableByFallthrough(const MachineBasicBlock
if (!Pred->isLayoutSuccessor(MBB))
return false;
- // Check if the last terminator is an unconditional branch
+ // Check if the last terminator is an unconditional branch.
MachineBasicBlock::const_iterator I = Pred->end();
- while( I != Pred->begin() && !(--I)->getDesc().isTerminator() )
- ; /* Noop */
+ while (I != Pred->begin() && !(--I)->getDesc().isTerminator())
+ ; // Noop
return I == Pred->end() || !I->getDesc().isBarrier();
}