diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-06 07:02:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-06 07:02:28 +0000 |
| commit | 29146d417e7cec124309ecb236bf5ae53b6e9dd9 (patch) | |
| tree | f33c2e4d0ba5c19da2bfca543fd7e7108ccf0d63 /llvm/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | |
| parent | 4279a078a54c84a1e9b33d78472d157b6ee678b7 (diff) | |
| download | bcm5719-llvm-29146d417e7cec124309ecb236bf5ae53b6e9dd9.tar.gz bcm5719-llvm-29146d417e7cec124309ecb236bf5ae53b6e9dd9.zip | |
clean this up.
llvm-svn: 97870
Diffstat (limited to 'llvm/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/llvm/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp index d6b45be293c..f6753a637cd 100644 --- a/llvm/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp +++ b/llvm/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(); } |

