[llvm-commits] [llvm] r52796 - /llvm/trunk/include/llvm/PassManager.h

Chris Lattner sabre at nondot.org
Thu Jun 26 15:26:46 PDT 2008


Author: lattner
Date: Thu Jun 26 17:26:45 2008
New Revision: 52796

URL: http://llvm.org/viewvc/llvm-project?rev=52796&view=rev
Log:
allow updating the MPM, so that you can use one FunctionPAssManager with
multiple ModuleProviders, e.g. with the JIT.

Modified:
    llvm/trunk/include/llvm/PassManager.h

Modified: llvm/trunk/include/llvm/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassManager.h?rev=52796&r1=52795&r2=52796&view=diff

==============================================================================
--- llvm/trunk/include/llvm/PassManager.h (original)
+++ llvm/trunk/include/llvm/PassManager.h Thu Jun 26 17:26:45 2008
@@ -95,6 +95,12 @@
   /// doFinalization - Run all of the finalizers for the function passes.
   ///
   bool doFinalization();
+  
+  /// getModuleProvider - Return the module provider that this passmanager is
+  /// currently using.  This is the module provider that it uses when a function
+  /// is optimized that is non-resident in the module.
+  ModuleProvider *getModuleProvider() const { return MP; }
+  void setModuleProvider(ModuleProvider *NewMP) { MP = NewMP; }
 
 private:
   FunctionPassManagerImpl *FPM;





More information about the llvm-commits mailing list