diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-03-09 05:04:48 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-03-09 05:04:48 +0000 |
commit | c6694228fa8df57193cbd924d627814384106ba2 (patch) | |
tree | 43eba4c5e757ca7e8b5a237ad5c60cea059d6b4f /include/llvm/BasicBlock.h | |
parent | c0d025f54f96ff719ae99d57d7c413aee35b6cbc (diff) | |
download | llvm-c6694228fa8df57193cbd924d627814384106ba2.tar.gz llvm-c6694228fa8df57193cbd924d627814384106ba2.tar.bz2 llvm-c6694228fa8df57193cbd924d627814384106ba2.tar.xz |
Two things. Preserve the unwind_to when splitting a BB.
Add the ability to remove just one instance of a BB from a phi node. This fixes
the compile error in the tree now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r-- | include/llvm/BasicBlock.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 4099d3bd32..253a8fa1a0 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -185,7 +185,11 @@ public: /// DontDeleteUselessPHIs will keep PHIs that have one value or the same /// value for all entries. /// - void removePredecessor(BasicBlock *Pred, bool DontDeleteUselessPHIs = false); + /// OnlyDeleteOne will only remove one entry from a PHI, in case there were + /// duplicate entries for the Pred. + /// + void removePredecessor(BasicBlock *Pred, bool DontDeleteUselessPHIs = false, + bool OnlyDeleteOne = false); /// splitBasicBlock - This splits a basic block into two at the specified /// instruction. Note that all instructions BEFORE the specified iterator |