[llvm-commits] CVS: llvm/include/llvm/ModuleProvider.h

Chris Lattner sabre at nondot.org
Thu Mar 29 11:30:43 PDT 2007



Changes in directory llvm/include/llvm:

ModuleProvider.h updated: 1.13 -> 1.14
---
Log message:

add a hook to demat functions.


---
Diffs of the changes:  (+7 -0)

 ModuleProvider.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/include/llvm/ModuleProvider.h
diff -u llvm/include/llvm/ModuleProvider.h:1.13 llvm/include/llvm/ModuleProvider.h:1.14
--- llvm/include/llvm/ModuleProvider.h:1.13	Thu Jul  6 19:01:01 2006
+++ llvm/include/llvm/ModuleProvider.h	Thu Mar 29 13:30:26 2007
@@ -43,6 +43,13 @@
   ///
   virtual bool materializeFunction(Function *F, std::string *ErrInfo = 0) = 0;
 
+  /// dematerializeFunction - If the given function is read in, and if the
+  /// module provider supports it, release the memory for the function, and set
+  /// it up to be materialized lazily.  If the provider doesn't support this
+  /// capability, this method is a noop.
+  ///
+  virtual void dematerializeFunction(Function *F) {}
+  
   /// materializeModule - make sure the entire Module has been completely read.
   /// On error, return null and fill in the error string if specified.
   ///






More information about the llvm-commits mailing list