mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Move isSuccessor() offline, change it to use std::find.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -217,12 +217,7 @@ public:
|
||||
|
||||
/// 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,
|
||||
|
Reference in New Issue
Block a user