From dee687b9f7cd110c01062d3fd38a9565218e2735 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 31 Jan 2002 18:32:49 +0000 Subject: [PATCH] Free memory when not in use git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1618 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/CallGraph.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 6fea49bb6fe..cc6d023d6dd 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();