aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-24 22:18:35 +0000
committerChris Lattner <sabre@nondot.org>2003-09-24 22:18:35 +0000
commit03f252f1ebd1f95ed53fd7432d55059ac8d009af (patch)
tree849389bffc5c76c021749baf92489998555637a0 /lib/Analysis
parentdd4a0495060b26085fe2ac4c0bc5297f58bd5e74 (diff)
downloadexternal_llvm-03f252f1ebd1f95ed53fd7432d55059ac8d009af.zip
external_llvm-03f252f1ebd1f95ed53fd7432d55059ac8d009af.tar.gz
external_llvm-03f252f1ebd1f95ed53fd7432d55059ac8d009af.tar.bz2
Remove explicit use of BasicBlock::succ_iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/LoopInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp
index c31e555..8c42562 100644
--- a/lib/Analysis/LoopInfo.cpp
+++ b/lib/Analysis/LoopInfo.cpp
@@ -25,7 +25,7 @@ bool Loop::contains(const BasicBlock *BB) const {
}
bool Loop::isLoopExit(const BasicBlock *BB) const {
- for (BasicBlock::succ_const_iterator SI = succ_begin(BB), SE = succ_end(BB);
+ for (succ_const_iterator SI = succ_begin(BB), SE = succ_end(BB);
SI != SE; ++SI) {
if (!contains(*SI))
return true;
@@ -39,7 +39,7 @@ unsigned Loop::getNumBackEdges() const {
for (std::vector<BasicBlock*>::const_iterator I = Blocks.begin(),
E = Blocks.end(); I != E; ++I)
- for (BasicBlock::succ_iterator SI = succ_begin(*I), SE = succ_end(*I);
+ for (succ_iterator SI = succ_begin(*I), SE = succ_end(*I);
SI != SE; ++SI)
if (*SI == H)
++NumBackEdges;