From: Chris Lattner Date: Thu, 31 Jan 2002 18:32:49 +0000 (+0000) Subject: Free memory when not in use X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dee687b9f7cd110c01062d3fd38a9565218e2735;p=oota-llvm.git Free memory when not in use git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1618 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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();