summaryrefslogtreecommitdiff
path: root/lib/VMCore/SlotCalculator.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-28 22:56:31 +0000
committerChris Lattner <sabre@nondot.org>2001-09-28 22:56:31 +0000
commit3ff4387113d7e74a8aa73f80c3518cb95f09a64b (patch)
tree7e55b84e841721d133477294b2fee246ee6ceaed /lib/VMCore/SlotCalculator.cpp
parentc56d779501901e22103a1236768cb97fd9b5c9b0 (diff)
downloadllvm-3ff4387113d7e74a8aa73f80c3518cb95f09a64b.tar.gz
llvm-3ff4387113d7e74a8aa73f80c3518cb95f09a64b.tar.bz2
llvm-3ff4387113d7e74a8aa73f80c3518cb95f09a64b.tar.xz
Pull iterators out of CFG.h and CFGdecls and put them in Support directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SlotCalculator.cpp')
-rw-r--r--lib/VMCore/SlotCalculator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp
index 0ac371cbce..cac8f2e953 100644
--- a/lib/VMCore/SlotCalculator.cpp
+++ b/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;