aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-31 18:32:49 +0000
committerChris Lattner <sabre@nondot.org>2002-01-31 18:32:49 +0000
commitdee687b9f7cd110c01062d3fd38a9565218e2735 (patch)
treef75be1e5a1c93aa46201d526920777a97c355a30
parentce885e9f9d03fa1d9dd5e2abba5e95953473288f (diff)
Free memory when not in use
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1618 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/CallGraph.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index 6fea49bb6f..cc6d023d6d 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/include/llvm/Analysis/CallGraph.h
@@ -122,6 +122,11 @@ public:
Provided.push_back(ID);
}
+ // releaseMemory - Data structures can be large, so free memory agressively.
+ virtual void releaseMemory() {
+ destroy();
+ }
+
private: // Implementation of CallGraph construction
void destroy();