diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-08-28 22:56:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-08-28 22:56:53 +0000 |
| commit | e6fe88391a8952e055b555688b3baad8672ff1de (patch) | |
| tree | 8e34bc009f947a54ac1f4b9b5ee705b47376e0a0 | |
| parent | b011a8f611a89d0830f70c19ec9600b0f7ecbb18 (diff) | |
| download | bcm5719-llvm-e6fe88391a8952e055b555688b3baad8672ff1de.tar.gz bcm5719-llvm-e6fe88391a8952e055b555688b3baad8672ff1de.zip | |
rename destroy -> releaseMemory to properly hook into passmgr.
llvm-svn: 55508
| -rw-r--r-- | llvm/include/llvm/Analysis/IntervalPartition.h | 9 | ||||
| -rw-r--r-- | llvm/lib/Analysis/IntervalPartition.cpp | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/llvm/include/llvm/Analysis/IntervalPartition.h b/llvm/include/llvm/Analysis/IntervalPartition.h index 793f7d5c27a..e724681fa49 100644 --- a/llvm/include/llvm/Analysis/IntervalPartition.h +++ b/llvm/include/llvm/Analysis/IntervalPartition.h @@ -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). diff --git a/llvm/lib/Analysis/IntervalPartition.cpp b/llvm/lib/Analysis/IntervalPartition.cpp index 7280f8f02dd..adb6e9df24f 100644 --- a/llvm/lib/Analysis/IntervalPartition.cpp +++ b/llvm/lib/Analysis/IntervalPartition.cpp @@ -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(); |

