diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-09 22:52:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-09 22:52:08 +0000 |
commit | 0d92ff0488acf2f58ad722ef58c5edeb15c306ef (patch) | |
tree | e5f5aec42ebff9b7179a0409475030c143ea25cd /llvm/lib/Analysis/IntervalPartition.cpp | |
parent | e836b583e096ae69cf41e82934c46392545e75c6 (diff) | |
download | bcm5719-llvm-0d92ff0488acf2f58ad722ef58c5edeb15c306ef.tar.gz bcm5719-llvm-0d92ff0488acf2f58ad722ef58c5edeb15c306ef.zip |
*** empty log message ***
llvm-svn: 3282
Diffstat (limited to 'llvm/lib/Analysis/IntervalPartition.cpp')
-rw-r--r-- | llvm/lib/Analysis/IntervalPartition.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/IntervalPartition.cpp b/llvm/lib/Analysis/IntervalPartition.cpp index 30bf02e9ee1..f0ed32881e4 100644 --- a/llvm/lib/Analysis/IntervalPartition.cpp +++ b/llvm/lib/Analysis/IntervalPartition.cpp @@ -21,13 +21,13 @@ AnalysisID IntervalPartition::ID = X; // destroy - Reset state back to before function was analyzed void IntervalPartition::destroy() { - for_each(begin(), end(), deleter<Interval>); + for_each(Intervals.begin(), Intervals.end(), deleter<Interval>); IntervalMap.clear(); RootInterval = 0; } void IntervalPartition::print(std::ostream &O) const { - std::copy(begin(), end(), + std::copy(Intervals.begin(), Intervals.end(), std::ostream_iterator<const Interval *>(O, "\n")); } @@ -36,7 +36,7 @@ void IntervalPartition::print(std::ostream &O) const { // interval itself (in the IntervalMap). // void IntervalPartition::addIntervalToPartition(Interval *I) { - push_back(I); + Intervals.push_back(I); // Add mappings for all of the basic blocks in I to the IntervalPartition for (Interval::node_iterator It = I->Nodes.begin(), End = I->Nodes.end(); @@ -74,7 +74,7 @@ bool IntervalPartition::runOnFunction(Function &F) { // Now that we know all of the successor information, propogate this to the // predecessors for each block... - for_each(begin(), end(), + for_each(Intervals.begin(), Intervals.end(), bind_obj(this, &IntervalPartition::updatePredecessors)); return false; } @@ -102,6 +102,6 @@ IntervalPartition::IntervalPartition(IntervalPartition &IP, bool) { // Now that we know all of the successor information, propogate this to the // predecessors for each block... - for_each(begin(), end(), + for_each(Intervals.begin(), Intervals.end(), bind_obj(this, &IntervalPartition::updatePredecessors)); } |