[llvm-commits] CVS: llvm/lib/VMCore/SlotCalculator.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 13 10:23:01 PDT 2003


Changes in directory llvm/lib/VMCore:

SlotCalculator.cpp updated: 1.28 -> 1.29

---
Log message:

Stop using "reverse depth first" order


---
Diffs of the changes:  (+3 -6)

Index: llvm/lib/VMCore/SlotCalculator.cpp
diff -u llvm/lib/VMCore/SlotCalculator.cpp:1.28 llvm/lib/VMCore/SlotCalculator.cpp:1.29
--- llvm/lib/VMCore/SlotCalculator.cpp:1.28	Sun Oct 12 22:32:08 2003
+++ llvm/lib/VMCore/SlotCalculator.cpp	Mon Oct 13 10:21:58 2003
@@ -277,13 +277,10 @@
 	       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;





More information about the llvm-commits mailing list