aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/InstrSched/SchedPriorities.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-28 22:56:31 +0000
committerChris Lattner <sabre@nondot.org>2001-09-28 22:56:31 +0000
commit3ff4387113d7e74a8aa73f80c3518cb95f09a64b (patch)
tree7e55b84e841721d133477294b2fee246ee6ceaed /lib/CodeGen/InstrSched/SchedPriorities.cpp
parentc56d779501901e22103a1236768cb97fd9b5c9b0 (diff)
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
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r--lib/CodeGen/InstrSched/SchedPriorities.cpp4
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;