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 /include/llvm/CodeGen/MachineBasicBlock.h | |
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 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 56b96ea872..1ba7e798f8 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -239,14 +239,14 @@ public: /// isSuccessor - Return true if the specified MBB is a successor of this /// block. - bool isSuccessor(MachineBasicBlock *MBB) const; + bool isSuccessor(const MachineBasicBlock *MBB) const; /// isLayoutSuccessor - Return true if the specified MBB will be emitted /// immediately after this block, such that if this block exits by /// falling through, control will transfer to the specified MBB. Note /// that MBB need not be a successor at all, for example if this block /// ends with an unconditional branch to some other block. - bool isLayoutSuccessor(MachineBasicBlock *MBB) const; + bool isLayoutSuccessor(const MachineBasicBlock *MBB) const; /// getFirstTerminator - returns an iterator to the first terminator /// instruction of this basic block. If a terminator does not exist, |