Skip to content

Commit e6fe883

Browse files
committed
rename destroy -> releaseMemory to properly hook into passmgr.
llvm-svn: 55508
1 parent b011a8f commit e6fe883

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

llvm/include/llvm/Analysis/IntervalPartition.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ class IntervalPartition : public FunctionPass {
5959
//
6060
IntervalPartition(IntervalPartition &I, bool);
6161

62-
// Destructor - Free memory
63-
~IntervalPartition() { destroy(); }
64-
6562
// print - Show contents in human readable format...
6663
virtual void print(std::ostream &O, const Module* = 0) const;
6764
void print(std::ostream *O, const Module* M = 0) const {
@@ -92,10 +89,10 @@ class IntervalPartition : public FunctionPass {
9289
// Interface to Intervals vector...
9390
const std::vector<Interval*> &getIntervals() const { return Intervals; }
9491

95-
private:
96-
// destroy - Reset state back to before function was analyzed
97-
void destroy();
92+
// releaseMemory - Reset state back to before function was analyzed
93+
void releaseMemory();
9894

95+
private:
9996
// addIntervalToPartition - Add an interval to the internal list of intervals,
10097
// and then add mappings from all of the basic blocks in the interval to the
10198
// interval itself (in the IntervalMap).

llvm/lib/Analysis/IntervalPartition.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ X("intervals", "Interval Partition Construction", true, true);
2323
// IntervalPartition Implementation
2424
//===----------------------------------------------------------------------===//
2525

26-
// destroy - Reset state back to before function was analyzed
27-
void IntervalPartition::destroy() {
26+
// releaseMemory - Reset state back to before function was analyzed
27+
void IntervalPartition::releaseMemory() {
2828
for (unsigned i = 0, e = Intervals.size(); i != e; ++i)
2929
delete Intervals[i];
3030
IntervalMap.clear();

0 commit comments

Comments
 (0)