diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-24 22:06:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-24 22:06:25 +0000 |
commit | f8b5b6ddb49df916bccdcff0d7e8a2bf8a6bc3a3 (patch) | |
tree | 4203fbc5ba1deb2cd643423f355d40299e2f3a38 /lib/Transforms/Instrumentation | |
parent | 34ce14b019acc98be1f915bd7fabc1517c557b07 (diff) | |
download | external_llvm-f8b5b6ddb49df916bccdcff0d7e8a2bf8a6bc3a3.zip external_llvm-f8b5b6ddb49df916bccdcff0d7e8a2bf8a6bc3a3.tar.gz external_llvm-f8b5b6ddb49df916bccdcff0d7e8a2bf8a6bc3a3.tar.bz2 |
Do not use BasicBlock::*_iterator, just use *_iterator itself.
Isn't updating copy and pasted code a joy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
4 files changed, 4 insertions, 8 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp index f6f3016..16f98e7 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp @@ -57,8 +57,7 @@ void CombineBranches::getBackEdgesVisit(BasicBlock *u, time++; d[u]=time; - for(BasicBlock::succ_iterator vl = succ_begin(u), - ve = succ_end(u); vl != ve; ++vl){ + for (succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){ BasicBlock *BB = *vl; diff --git a/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp b/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp index 6802c4f..74209b7 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp @@ -58,8 +58,7 @@ void InstLoops::getBackEdgesVisit(BasicBlock *u, time++; d[u]=time; - for(BasicBlock::succ_iterator vl = succ_begin(u), - ve = succ_end(u); vl != ve; ++vl){ + for(succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){ BasicBlock *BB = *vl; if(color[BB]!=GREY && color[BB]!=BLACK){ diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index aa46048..9629962 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -98,8 +98,7 @@ bool ProfilePaths::runOnFunction(Function &F){ Node *nd=findBB(nodes, BB); assert(nd && "No node for this edge!"); - for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB); - s!=se; ++s){ + for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){ Node *nd2=findBB(nodes,*s); assert(nd2 && "No node for this edge!"); Edge ed(nd,nd2,0); diff --git a/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp b/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp index 805250f..0f83823 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp @@ -216,8 +216,7 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//, Node *nd=findBB(nodes, BB); assert(nd && "No node for this edge!"); - for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB); - s!=se; ++s){ + for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){ if(triggerBBs[*s] == 9){ //if(!pathReg[M]){ //Get the path register for this! |