aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-29 05:21:42 +0000
committerChris Lattner <sabre@nondot.org>2001-06-29 05:21:42 +0000
commit7b6f5a3ee9a68d0f6206b1695f71551a467e33c4 (patch)
tree2a9dea41f50019503313796d64bdf54463a541ce /include/llvm/BasicBlock.h
parent3f7fe711fbfe523b0d3da64fae6a4c76d224434b (diff)
downloadexternal_llvm-7b6f5a3ee9a68d0f6206b1695f71551a467e33c4.zip
external_llvm-7b6f5a3ee9a68d0f6206b1695f71551a467e33c4.tar.gz
external_llvm-7b6f5a3ee9a68d0f6206b1695f71551a467e33c4.tar.bz2
Added new removePredecessor method prototype
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index f01f79c..d7f286e 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -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