aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-03-30 20:06:29 +0000
committerDan Gohman <gohman@apple.com>2009-03-30 20:06:29 +0000
commitff62c62b7c6987ee8274d20f65e2e69ec148911a (patch)
tree62e81b839a6d16425440694c02fbcf269aededf5 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentd3899dc52f854bbc20876f435dfe790bb2b96a04 (diff)
downloadllvm-ff62c62b7c6987ee8274d20f65e2e69ec148911a.zip
llvm-ff62c62b7c6987ee8274d20f65e2e69ec148911a.tar.gz
llvm-ff62c62b7c6987ee8274d20f65e2e69ec148911a.tar.bz2
Constify arguments in isSuccessor and isLayoutSuccessor.
llvm-svn: 68054
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 1d68d7c..51f0f9d 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/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);
}