[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h
Evan Cheng
evan.cheng at apple.com
Thu May 17 16:59:16 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineBasicBlock.h updated: 1.63 -> 1.64
---
Log message:
Move isSuccessor() offline, change it to use std::find.
---
Diffs of the changes: (+1 -6)
MachineBasicBlock.h | 7 +------
1 files changed, 1 insertion(+), 6 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.63 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.64
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.63 Tue May 8 13:55:03 2007
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Thu May 17 18:58:52 2007
@@ -217,12 +217,7 @@
/// isSuccessor - Return true if the specified MBB is a successor of this
/// block.
- bool isSuccessor(MachineBasicBlock *MBB) const {
- for (const_succ_iterator I = succ_begin(), E = succ_end(); I != E; ++I)
- if (*I == MBB)
- return true;
- return false;
- }
+ bool isSuccessor(MachineBasicBlock *MBB) const;
/// getFirstTerminator - returns an iterator to the first terminator
/// instruction of this basic block. If a terminator does not exist,
More information about the llvm-commits
mailing list