llvm.org GIT mirror llvm / 6dda916
Simplify declarations slightly by using typedefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129720 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Friedman 9 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
362362 }
363363
364364 void MachineBasicBlock::removePredecessor(MachineBasicBlock *pred) {
365 std::vector::iterator I =
366 std::find(Predecessors.begin(), Predecessors.end(), pred);
365 pred_iterator I = std::find(Predecessors.begin(), Predecessors.end(), pred);
367366 assert(I != Predecessors.end() && "Pred is not a predecessor of this block!");
368367 Predecessors.erase(I);
369368 }
401400 }
402401
403402 bool MachineBasicBlock::isSuccessor(const MachineBasicBlock *MBB) const {
404 std::vector::const_iterator I =
405 std::find(Successors.begin(), Successors.end(), MBB);
403 const_succ_iterator I = std::find(Successors.begin(), Successors.end(), MBB);
406404 return I != Successors.end();
407405 }
408406