summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-13 15:21:58 +0000
committerChris Lattner <sabre@nondot.org>2003-10-13 15:21:58 +0000
commit0c068c097a8aecfb1f6769110d31d973f844ff65 (patch)
treedb92d3dfbe1fb84091b26f92656eceb214cbdbf7
parente6f4e0770660d7563f48319b613212a715e9ba1e (diff)
downloadbcm5719-llvm-0c068c097a8aecfb1f6769110d31d973f844ff65.tar.gz
bcm5719-llvm-0c068c097a8aecfb1f6769110d31d973f844ff65.zip
Stop using "reverse depth first" order
llvm-svn: 9081
-rw-r--r--llvm/lib/VMCore/SlotCalculator.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/SlotCalculator.cpp b/llvm/lib/VMCore/SlotCalculator.cpp
index 47191ce72b2..0941b7607b3 100644
--- a/llvm/lib/VMCore/SlotCalculator.cpp
+++ b/llvm/lib/VMCore/SlotCalculator.cpp
@@ -277,13 +277,10 @@ int SlotCalculator::insertVal(const Value *D, bool dontIgnore) {
ResultSlot << "\n");
}
- // Loop over any contained types in the definition... in reverse depth first
- // order. This assures that all of the leafs of a type are output before
- // the type itself is. This also assures us that we will not hit infinite
- // recursion on recursive types...
+ // Loop over any contained types in the definition... in depth first order.
//
- for (df_iterator<const Type*> I = df_begin(TheTy, true),
- E = df_end(TheTy); I != E; ++I)
+ for (df_iterator<const Type*> I = df_begin(TheTy), 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;
OpenPOWER on IntegriCloud