diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-28 22:56:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-28 22:56:31 +0000 |
| commit | bb09a109294b5af04a99b73f2b84c5f8736fdac3 (patch) | |
| tree | 0b8da8ec0e7d1ecde6386c68184ba1fa304669a7 /llvm/lib/Transforms | |
| parent | b021f68438ace12634f4780d8a346b6a017bd88e (diff) | |
| download | bcm5719-llvm-bb09a109294b5af04a99b73f2b84c5f8736fdac3.tar.gz bcm5719-llvm-bb09a109294b5af04a99b73f2b84c5f8736fdac3.zip | |
Pull iterators out of CFG.h and CFGdecls and put them in Support directory
llvm-svn: 664
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ADCE.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp index 631db2cea78..446b95afe09 100644 --- a/llvm/lib/Transforms/Scalar/ADCE.cpp +++ b/llvm/lib/Transforms/Scalar/ADCE.cpp @@ -11,8 +11,8 @@ #include "llvm/Type.h" #include "llvm/Analysis/Dominators.h" #include "llvm/Support/STLExtras.h" +#include "llvm/Support/DepthFirstIterator.h" #include "llvm/Analysis/Writer.h" -#include "llvm/CFG.h" #include "llvm/iTerminators.h" #include <set> #include <algorithm> @@ -90,7 +90,8 @@ bool ADCE::doADCE() { // instructions live in basic blocks that are unreachable. These blocks will // be eliminated later, along with the instructions inside. // - for (cfg::df_iterator BBI = cfg::df_begin(M), BBE = cfg::df_end(M); + for (df_iterator<Method*> BBI = df_begin(M), + BBE = df_end(M); BBI != BBE; ++BBI) { BasicBlock *BB = *BBI; for (BasicBlock::iterator II = BB->begin(), EI = BB->end(); II != EI; ) { |

