rename destroy -> releaseMemory to properly hook into passmgr.
[oota-llvm.git] / lib / Analysis / IntervalPartition.cpp
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();