1
0
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:
Brian Gaeke 2004-05-02 01:04:52 +00:00
parent 5f393764c8
commit 397162e886

View File

@ -122,9 +122,6 @@ public:
/// The Predecessors list of succ is automatically updated.
///
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);
succ->addPredecessor (this);
}
@ -136,8 +133,6 @@ public:
succ->removePredecessor (this);
std::vector<MachineBasicBlock *>::iterator goner =
std::find (Successors.begin(), Successors.end (), succ);
assert (goner != Successors.end ()
&& "Trying to removeSuccessor a MBB which isn't my successor");
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.
///
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);
}
@ -192,8 +184,6 @@ private: // Methods used to maintain doubly linked list of blocks...
void removePredecessor (MachineBasicBlock *pred) {
std::vector<MachineBasicBlock *>::iterator goner =
std::find (Predecessors.begin(), Predecessors.end (), pred);
assert (goner != Predecessors.end ()
&& "Trying to removePredecessor a MBB which isn't my predecessor");
Predecessors.erase (goner);
}
};