Remove this file as there are no LLVM users of it any more.
[oota-llvm.git] / include / llvm / ModuleProvider.h
index 07b7ae3bab9685af6c09d8c36b0f4209ed9a521d..8af3196accdbe29de69e2eadd9eedbaea883c42d 100644 (file)
@@ -35,15 +35,18 @@ public:
   ///
   Module* getModule() { return TheModule; }
 
-  /// materializeFunction - make sure the given function is fully read.
+  /// materializeFunction - make sure the given function is fully read.  Note
+  /// that this can throw an exception if the module is corrupt!
   ///
   virtual void materializeFunction(Function *F) = 0;
 
   /// materializeModule - make sure the entire Module has been completely read.
+  /// Note that this can throw an exception if the module is corrupt!
   ///
-  Module* materializeModule();
+  virtual Module* materializeModule() = 0;
 
   /// releaseModule - no longer delete the Module* when provider is destroyed.
+  /// Note that this can throw an exception if the module is corrupt!
   ///
   virtual Module* releaseModule() { 
     // Since we're losing control of this Module, we must hand it back complete
@@ -64,6 +67,7 @@ struct ExistingModuleProvider : public ModuleProvider {
     TheModule = M;
   }
   void materializeFunction(Function *F) {}
+  Module* materializeModule() { return TheModule; }
 };
 
 } // End llvm namespace