summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-02-25 18:31:31 +0000
committerDale Johannesen <dalej@apple.com>2007-02-25 18:31:31 +0000
commitc2f3d015e056fc80bfc71e0713252a5842ca9b4e (patch)
tree9785cf3d05c3a03d47537643405b2e7c91606d1c /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
parent38fd9b074f8e6b2a9c10ba5f4d7b25f6a9646e5e (diff)
downloadbcm5719-llvm-c2f3d015e056fc80bfc71e0713252a5842ca9b4e.tar.gz
bcm5719-llvm-c2f3d015e056fc80bfc71e0713252a5842ca9b4e.zip
cosmetic changes from review of last patch. obvious
llvm-svn: 34598
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMConstantIslandPass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
index 422e0e4cb71..8fe8167abaf 100644
--- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -558,7 +558,7 @@ MachineBasicBlock *ARMConstantIslands::SplitBlockBeforeInstr(MachineInstr *MI) {
return NewBB;
}
-//// OffsetIsInRange - Checks whether UserOffset is within MaxDisp of
+/// OffsetIsInRange - Checks whether UserOffset is within MaxDisp of
/// TrialOffset.
bool ARMConstantIslands::OffsetIsInRange(unsigned UserOffset,
unsigned TrialOffset, unsigned MaxDisp, bool NegativeOK) {
@@ -631,7 +631,7 @@ static bool BBIsJumpedOver(MachineBasicBlock *MBB) {
void ARMConstantIslands::AdjustBBOffsetsAfter(MachineBasicBlock *BB, int delta)
{
MachineFunction::iterator MBBI = BB->getParent()->end();
- for(int i=BB->getNumber()+1; i<=prior(MBBI)->getNumber(); i++)
+ for(unsigned i=BB->getNumber()+1; i<BB->getParent()->getNumBlockIDs(); i++)
BBOffsets[i] += delta;
}
OpenPOWER on IntegriCloud