diff options
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedPriorities.cpp')
| -rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index 9e2053bb7c..7840a25098 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 @@ SchedPriorities::initialize()  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;  | 
