Improve documentation.
[oota-llvm.git] / include / llvm / ADT / PostOrderIterator.h
index a0ff051542cab286b6dfecb5ff1d96e445a7538a..16f086577417c372f0a8be021463ebeebe14d321 100644 (file)
@@ -20,6 +20,7 @@
 #include "llvm/ADT/iterator"
 #include <stack>
 #include <set>
+#include <vector>
 
 namespace llvm {
 
@@ -46,8 +47,7 @@ class po_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t>,
   typedef forward_iterator<typename GT::NodeType, ptrdiff_t> super;
   typedef typename GT::NodeType          NodeType;
   typedef typename GT::ChildIteratorType ChildItTy;
-
-  std::set<NodeType *> Visited;    // All of the blocks visited so far...
+  
   // VisitStack - Used to maintain the ordering.  Top = current block
   // First element is basic block pointer, second is the 'next child' to visit
   std::stack<std::pair<NodeType *, ChildItTy> > VisitStack;