diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-30 20:06:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-30 20:06:29 +0000 |
commit | 6d1b89e74f98470d05666ca9f59a8ec5d04b5eb4 (patch) | |
tree | 5dad62c7d5cd7100ff8fde8ea0cf85b458e5a064 /lib/CodeGen/MachineBasicBlock.cpp | |
parent | d480ac6f971b7c56e322a40dac13f65f04bd5888 (diff) |
Constify arguments in isSuccessor and isLayoutSuccessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 1d68d7cd2b..51f0f9d000 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -248,13 +248,13 @@ void MachineBasicBlock::transferSuccessors(MachineBasicBlock *fromMBB) fromMBB->removeSuccessor(fromMBB->succ_begin()); } -bool MachineBasicBlock::isSuccessor(MachineBasicBlock *MBB) const { +bool MachineBasicBlock::isSuccessor(const MachineBasicBlock *MBB) const { std::vector<MachineBasicBlock *>::const_iterator I = std::find(Successors.begin(), Successors.end(), MBB); return I != Successors.end(); } -bool MachineBasicBlock::isLayoutSuccessor(MachineBasicBlock *MBB) const { +bool MachineBasicBlock::isLayoutSuccessor(const MachineBasicBlock *MBB) const { MachineFunction::const_iterator I(this); return next(I) == MachineFunction::const_iterator(MBB); } |