Added new removePredecessor method prototype
authorChris Lattner <sabre@nondot.org>
Fri, 29 Jun 2001 05:21:42 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Jun 2001 05:21:42 +0000 (05:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h

index f01f79cecf8eb5b1e321e4203f5c420e7b08b83f..d7f286ec5616c088187466402517e1cf37869377 100644 (file)
@@ -112,6 +112,14 @@ public:
   //
   void dropAllReferences();
 
+  // removePredecessor - This method is used to notify a BasicBlock that the
+  // specified Predecessor of the block is no longer able to reach it.  This is
+  // actually not used to update the Predecessor list, but is actually used to 
+  // update the PHI nodes that reside in the block.  Note that this should be
+  // called while the predecessor still refers to this block.
+  //
+  void removePredecessor(BasicBlock *Pred);
+
   // splitBasicBlock - This splits a basic block into two at the specified
   // instruction.  Note that all instructions BEFORE the specified iterator stay
   // as part of the original basic block, an unconditional branch is added to