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/VMCore/SlotCalculator.cpp | |
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/VMCore/SlotCalculator.cpp')
-rw-r--r-- | llvm/lib/VMCore/SlotCalculator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/SlotCalculator.cpp b/llvm/lib/VMCore/SlotCalculator.cpp index 0ac371cbce7..cac8f2e953c 100644 --- a/llvm/lib/VMCore/SlotCalculator.cpp +++ b/llvm/lib/VMCore/SlotCalculator.cpp @@ -20,7 +20,7 @@ #include "llvm/DerivedTypes.h" #include "llvm/SymbolTable.h" #include "llvm/Support/STLExtras.h" -#include "llvm/CFG.h" +#include "llvm/Support/DepthFirstIterator.h" #include <algorithm> #if 0 @@ -264,8 +264,8 @@ int SlotCalculator::insertVal(const Value *D, bool dontIgnore = false) { // the type itself is. This also assures us that we will not hit infinite // recursion on recursive types... // - for (cfg::tdf_iterator I = cfg::tdf_begin(TheTy, true), - E = cfg::tdf_end(TheTy); I != E; ++I) + for (df_iterator<const Type*> I = df_begin(TheTy, true), + E = df_end(TheTy); I != E; ++I) if (*I != TheTy) { // If we haven't seen this sub type before, add it to our type table! const Type *SubTy = *I; |