mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Chris told me to take these assertions out a few days ago, but I forgot to
check this in. llvm-svn: 13313
This commit is contained in:
parent
5f393764c8
commit
397162e886
@ -122,9 +122,6 @@ public:
|
|||||||
/// The Predecessors list of succ is automatically updated.
|
/// The Predecessors list of succ is automatically updated.
|
||||||
///
|
///
|
||||||
void addSuccessor (MachineBasicBlock *succ) {
|
void addSuccessor (MachineBasicBlock *succ) {
|
||||||
assert (std::find (Successors.begin (), Successors.end (), succ)
|
|
||||||
== Successors.end ()
|
|
||||||
&& "Trying to addSuccessor a MBB which is already my successor");
|
|
||||||
Successors.push_back (succ);
|
Successors.push_back (succ);
|
||||||
succ->addPredecessor (this);
|
succ->addPredecessor (this);
|
||||||
}
|
}
|
||||||
@ -136,8 +133,6 @@ public:
|
|||||||
succ->removePredecessor (this);
|
succ->removePredecessor (this);
|
||||||
std::vector<MachineBasicBlock *>::iterator goner =
|
std::vector<MachineBasicBlock *>::iterator goner =
|
||||||
std::find (Successors.begin(), Successors.end (), succ);
|
std::find (Successors.begin(), Successors.end (), succ);
|
||||||
assert (goner != Successors.end ()
|
|
||||||
&& "Trying to removeSuccessor a MBB which isn't my successor");
|
|
||||||
Successors.erase (goner);
|
Successors.erase (goner);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,9 +173,6 @@ private: // Methods used to maintain doubly linked list of blocks...
|
|||||||
/// update pred's successors list. Use pred->addSuccessor instead.
|
/// update pred's successors list. Use pred->addSuccessor instead.
|
||||||
///
|
///
|
||||||
void addPredecessor (MachineBasicBlock *pred) {
|
void addPredecessor (MachineBasicBlock *pred) {
|
||||||
assert(std::find (Predecessors.begin (), Predecessors.end (), pred)
|
|
||||||
== Predecessors.end ()
|
|
||||||
&& "Trying to addPredecessor a MBB which is already my predecessor");
|
|
||||||
Predecessors.push_back (pred);
|
Predecessors.push_back (pred);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,8 +184,6 @@ private: // Methods used to maintain doubly linked list of blocks...
|
|||||||
void removePredecessor (MachineBasicBlock *pred) {
|
void removePredecessor (MachineBasicBlock *pred) {
|
||||||
std::vector<MachineBasicBlock *>::iterator goner =
|
std::vector<MachineBasicBlock *>::iterator goner =
|
||||||
std::find (Predecessors.begin(), Predecessors.end (), pred);
|
std::find (Predecessors.begin(), Predecessors.end (), pred);
|
||||||
assert (goner != Predecessors.end ()
|
|
||||||
&& "Trying to removePredecessor a MBB which isn't my predecessor");
|
|
||||||
Predecessors.erase (goner);
|
Predecessors.erase (goner);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user