summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.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
commitbb09a109294b5af04a99b73f2b84c5f8736fdac3 (patch)
tree0b8da8ec0e7d1ecde6386c68184ba1fa304669a7 /llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
parentb021f68438ace12634f4780d8a346b6a017bd88e (diff)
downloadbcm5719-llvm-bb09a109294b5af04a99b73f2b84c5f8736fdac3.tar.gz
bcm5719-llvm-bb09a109294b5af04a99b73f2b84c5f8736fdac3.zip
Pull iterators out of CFG.h and CFGdecls and put them in Support directory
llvm-svn: 664
Diffstat (limited to 'llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
index e47c9d2bc3c..898dd28b72d 100644
--- a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
+++ b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
@@ -11,7 +11,7 @@
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
#include "llvm/CodeGen/MachineInstr.h"
-
+#include "llvm/Support/PostOrderIterator.h"
/************************** Constructor/Destructor ***************************/
@@ -47,9 +47,9 @@ void MethodLiveVarInfo::constructBBs()
{
unsigned int POId = 0; // Reverse Depth-first Order ID
- cfg::po_const_iterator BBI = cfg::po_begin(Meth);
+ po_iterator<const Method*> BBI = po_begin(Meth);
- for( ; BBI != cfg::po_end(Meth) ; ++BBI, ++POId)
+ for( ; BBI != po_end(Meth) ; ++BBI, ++POId)
{
if(DEBUG_LV) cout << " For BB " << (*BBI)->getName() << ":" << endl ;
@@ -77,9 +77,9 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
if(DEBUG_LV)
cout << endl << " After Backward Pass ..." << endl;
- cfg::po_const_iterator BBI = cfg::po_begin(Meth);
+ po_iterator<const Method*> BBI = po_begin(Meth);
- for( ; BBI != cfg::po_end(Meth) ; ++BBI)
+ for( ; BBI != po_end(Meth) ; ++BBI)
{
BBLiveVar* LVBB = BB2BBLVMap[*BBI];
OpenPOWER on IntegriCloud