diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-05 18:59:22 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-05 18:59:22 +0000 |
commit | 7ad5d14f3a2c916277e25737de9ff3f605131d1a (patch) | |
tree | c497b184991fcdbe59583f27ad4847fe614f25f4 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | e5be660e25774e4a769be52a9b7817a1917b7ff7 (diff) | |
download | bcm5719-llvm-7ad5d14f3a2c916277e25737de9ff3f605131d1a.tar.gz bcm5719-llvm-7ad5d14f3a2c916277e25737de9ff3f605131d1a.zip |
[NFC] Instruction: introduce replaceSuccessorWith() function, use it
Summary:
There is `Instruction::getNumSuccessors()`, `Instruction::getSuccessor()`
and `Instruction::setSuccessor()`, but no function to replace every
specified `BasicBlock*` successor with some other specified `BasicBlock*`.
I've found one place where it should clearly be used.
Reviewers: chandlerc, craig.topper, spatel, danielcdh
Reviewed By: craig.topper
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D61010
llvm-svn: 359994
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions