Pull iterators out of CFG.h and CFGdecls and put them in Support directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@664 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp
index 9e2053b..7840a25 100644
--- a/lib/CodeGen/InstrSched/SchedPriorities.cpp
+++ b/lib/CodeGen/InstrSched/SchedPriorities.cpp
@@ -19,6 +19,7 @@
 //**************************************************************************/
 
 #include "SchedPriorities.h"
+#include "llvm/Support/PostOrderIterator.h"
 
 
 SchedPriorities::SchedPriorities(const Method* method,
@@ -50,8 +51,7 @@
 void
 SchedPriorities::computeDelays(const SchedGraph* graph)
 {
-  sg_po_const_iterator poIter = sg_po_const_iterator::begin(graph->getRoot());
-  sg_po_const_iterator poEnd  = sg_po_const_iterator::end(  graph->getRoot());
+  po_iterator<const SchedGraph*> poIter = po_begin(graph), poEnd =po_end(graph);
   for ( ; poIter != poEnd; ++poIter)
     {
       const SchedGraphNode* node = *poIter;