summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-05-05 18:59:45 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-05-05 18:59:45 +0000
commit02569408efe0f30ce8ca6f1210e015162f880056 (patch)
tree563f1bbce262893caee49876d5a27150144e36a4 /llvm/include
parent1a1b92217787842d06a1d9d68529763a11338a47 (diff)
downloadbcm5719-llvm-02569408efe0f30ce8ca6f1210e015162f880056.tar.gz
bcm5719-llvm-02569408efe0f30ce8ca6f1210e015162f880056.zip
[NFC] BasicBlock: generalize replaceSuccessorsPhiUsesWith(), take Old bb
Thus it does not assume that the old basic block is the basic block for which we are looking at successors. Not reviewed, but seems rather trivial, in line with the rest of previous few patches. llvm-svn: 359997
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/BasicBlock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/BasicBlock.h b/llvm/include/llvm/IR/BasicBlock.h
index c88b1b51014..69555af50e1 100644
--- a/llvm/include/llvm/IR/BasicBlock.h
+++ b/llvm/include/llvm/IR/BasicBlock.h
@@ -395,6 +395,10 @@ public:
void replacePhiUsesWith(BasicBlock *Old, BasicBlock *New);
/// Update all phi nodes in this basic block's successors to refer to basic
+ /// block \p New instead of basic block \p Old.
+ void replaceSuccessorsPhiUsesWith(BasicBlock *Old, BasicBlock *New);
+
+ /// Update all phi nodes in this basic block's successors to refer to basic
/// block \p New instead of to it.
void replaceSuccessorsPhiUsesWith(BasicBlock *New);
OpenPOWER on IntegriCloud