rename destroy -> releaseMemory to properly hook into passmgr.
authorChris Lattner <sabre@nondot.org>
Thu, 28 Aug 2008 22:56:53 +0000 (22:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Aug 2008 22:56:53 +0000 (22:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55508 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/IntervalPartition.h
lib/Analysis/IntervalPartition.cpp

index 793f7d5c27ad2f71add07f9b95d39fbfa767a17b..e724681fa4935682d6a65d6838955f7bec7d86fd 100644 (file)
@@ -59,9 +59,6 @@ public:
   //
   IntervalPartition(IntervalPartition &I, bool);
 
-  // Destructor - Free memory
-  ~IntervalPartition() { destroy(); }
-
   // print - Show contents in human readable format...
   virtual void print(std::ostream &O, const Module* = 0) const;
   void print(std::ostream *O, const Module* M = 0) const {
@@ -92,10 +89,10 @@ public:
   // Interface to Intervals vector...
   const std::vector<Interval*> &getIntervals() const { return Intervals; }
 
-private:
-  // destroy - Reset state back to before function was analyzed
-  void destroy();
+  // releaseMemory - Reset state back to before function was analyzed
+  void releaseMemory();
 
+private:
   // addIntervalToPartition - Add an interval to the internal list of intervals,
   // and then add mappings from all of the basic blocks in the interval to the
   // interval itself (in the IntervalMap).
index 7280f8f02dd44917d94b3c1d2d7db6cdcb0250f8..adb6e9df24fefd8cd8190c8f299141ef8e684190 100644 (file)
@@ -23,8 +23,8 @@ X("intervals", "Interval Partition Construction", true, true);
 // IntervalPartition Implementation
 //===----------------------------------------------------------------------===//
 
-// destroy - Reset state back to before function was analyzed
-void IntervalPartition::destroy() {
+// releaseMemory - Reset state back to before function was analyzed
+void IntervalPartition::releaseMemory() {
   for (unsigned i = 0, e = Intervals.size(); i != e; ++i)
     delete Intervals[i];
   IntervalMap.clear();