Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / Support / PostOrderIterator.h
index 9309554f3287fb5d884beaa807276f2d1a5f31fe..d66c4b84c40240467f9d2c1439f770d1d4c773d5 100644 (file)
@@ -21,6 +21,8 @@
 #include <stack>
 #include <set>
 
+namespace llvm {
+
 template<class GraphT, class GT = GraphTraits<GraphT> >
 class po_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t> {
   typedef forward_iterator<typename GT::NodeType, ptrdiff_t> super;
@@ -149,4 +151,6 @@ public:
   inline rpo_iterator end()   { return Blocks.rend(); }
 };
 
+} // End llvm namespace
+
 #endif