Free memory when not in use
authorChris Lattner <sabre@nondot.org>
Thu, 31 Jan 2002 18:32:49 +0000 (18:32 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 31 Jan 2002 18:32:49 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1618 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/CallGraph.h

index 6fea49bb6fe2822c120a7cd0733b0e0fc641ee76..cc6d023d6dd2a1864bc29bbfebded5cfe248b6dd 100644 (file)
@@ -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();