Add comments
authorChris Lattner <sabre@nondot.org>
Sun, 1 Feb 2004 00:32:48 +0000 (00:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Feb 2004 00:32:48 +0000 (00:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11042 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ModuleProvider.h

index a9422c2afb0feddb5cbb5ba8e45dfdbdffd579fd..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!
   ///
   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