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

Misha Brukman brukman at cs.uiuc.edu
Wed Jan 21 16:55:01 PST 2004


Changes in directory llvm/include/llvm:

ModuleProvider.h updated: 1.8 -> 1.9

---
Log message:

To materialize a module, you need to know what functions NEED to be read and
which ones don't, which is state that the parent class doesn't know without
knowing the implementation. Let the children classes implement
materializeModule().


---
Diffs of the changes:  (+2 -1)

Index: llvm/include/llvm/ModuleProvider.h
diff -u llvm/include/llvm/ModuleProvider.h:1.8 llvm/include/llvm/ModuleProvider.h:1.9
--- llvm/include/llvm/ModuleProvider.h:1.8	Mon Dec 29 20:44:04 2003
+++ llvm/include/llvm/ModuleProvider.h	Wed Jan 21 16:54:10 2004
@@ -41,7 +41,7 @@
 
   /// materializeModule - make sure the entire Module has been completely read.
   ///
-  Module* materializeModule();
+  virtual Module* materializeModule() = 0;
 
   /// releaseModule - no longer delete the Module* when provider is destroyed.
   ///
@@ -64,6 +64,7 @@
     TheModule = M;
   }
   void materializeFunction(Function *F) {}
+  Module* materializeModule() { return TheModule; }
 };
 
 } // End llvm namespace





More information about the llvm-commits mailing list