*** empty log message ***
authorChris Lattner <sabre@nondot.org>
Fri, 9 Aug 2002 22:52:08 +0000 (22:52 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Aug 2002 22:52:08 +0000 (22:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3282 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IntervalPartition.cpp

index 30bf02e9ee18dcd0a175f3afa0fd19b6ff0eb59e..f0ed32881e408185760e0c472269a076f6838e06 100644 (file)
@@ -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));
 }