mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 05:56:51 +00:00
Simplify declarations slightly by using typedefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50ebe53353
commit
6dda916358
@ -363,8 +363,7 @@ void MachineBasicBlock::addPredecessor(MachineBasicBlock *pred) {
|
||||
}
|
||||
|
||||
void MachineBasicBlock::removePredecessor(MachineBasicBlock *pred) {
|
||||
std::vector<MachineBasicBlock *>::iterator I =
|
||||
std::find(Predecessors.begin(), Predecessors.end(), pred);
|
||||
pred_iterator I = std::find(Predecessors.begin(), Predecessors.end(), pred);
|
||||
assert(I != Predecessors.end() && "Pred is not a predecessor of this block!");
|
||||
Predecessors.erase(I);
|
||||
}
|
||||
@ -402,8 +401,7 @@ MachineBasicBlock::transferSuccessorsAndUpdatePHIs(MachineBasicBlock *fromMBB) {
|
||||
}
|
||||
|
||||
bool MachineBasicBlock::isSuccessor(const MachineBasicBlock *MBB) const {
|
||||
std::vector<MachineBasicBlock *>::const_iterator I =
|
||||
std::find(Successors.begin(), Successors.end(), MBB);
|
||||
const_succ_iterator I = std::find(Successors.begin(), Successors.end(), MBB);
|
||||
return I != Successors.end();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user