diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-13 15:21:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-13 15:21:58 +0000 |
commit | cb18d181d1ca542d7068ce4be88f76cc1bfd31d5 (patch) | |
tree | 26be2249e1e1d1bd403fa1f7390a86bfa73d6b74 /lib/VMCore/SlotCalculator.cpp | |
parent | c49fcd123982e07be4badc11a90af48e62b91caf (diff) | |
download | external_llvm-cb18d181d1ca542d7068ce4be88f76cc1bfd31d5.zip external_llvm-cb18d181d1ca542d7068ce4be88f76cc1bfd31d5.tar.gz external_llvm-cb18d181d1ca542d7068ce4be88f76cc1bfd31d5.tar.bz2 |
Stop using "reverse depth first" order
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SlotCalculator.cpp')
-rw-r--r-- | lib/VMCore/SlotCalculator.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp index 47191ce..0941b76 100644 --- a/lib/VMCore/SlotCalculator.cpp +++ b/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; |