aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/BasicBlock.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2020-03-10 11:33:02 -0700
committerAlina Sbirlea <asbirlea@google.com>2020-03-25 12:40:55 -0700
commit3abcbf9903e113093da39e4e5ed226e9cded5e76 (patch)
tree0259ad6357354f1c4fb85e62cfe356a867cff725 /llvm/lib/IR/BasicBlock.cpp
parentfe5c719eaf572e23b700e75832ec37a3761b337b (diff)
downloadllvm-3abcbf9903e113093da39e4e5ed226e9cded5e76.zip
llvm-3abcbf9903e113093da39e4e5ed226e9cded5e76.tar.gz
llvm-3abcbf9903e113093da39e4e5ed226e9cded5e76.tar.bz2
[CFG/BasicBlock] Rename succ_const to const_succ. [NFC]
Summary: Rename `succ_const_iterator` to `const_succ_iterator` and `succ_const_range` to `const_succ_range` for consistency with the predecessor iterators, and the corresponding iterators in MachineBasicBlock. Reviewers: nicholas, dblaikie, nlewycky Subscribers: hiraditya, bmahjour, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75952
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r--llvm/lib/IR/BasicBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index 675deea..358362c 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -291,7 +291,7 @@ bool BasicBlock::hasNPredecessorsOrMore(unsigned N) const {
}
const BasicBlock *BasicBlock::getSingleSuccessor() const {
- succ_const_iterator SI = succ_begin(this), E = succ_end(this);
+ const_succ_iterator SI = succ_begin(this), E = succ_end(this);
if (SI == E) return nullptr; // no successors
const BasicBlock *TheSucc = *SI;
++SI;
@@ -299,7 +299,7 @@ const BasicBlock *BasicBlock::getSingleSuccessor() const {
}
const BasicBlock *BasicBlock::getUniqueSuccessor() const {
- succ_const_iterator SI = succ_begin(this), E = succ_end(this);
+ const_succ_iterator SI = succ_begin(this), E = succ_end(this);
if (SI == E) return nullptr; // No successors
const BasicBlock *SuccBB = *SI;
++SI;