Revision of Brian's threading support library to be a bit more generic and
[oota-llvm.git] / include / llvm / PassManager.h
index 64499ca8bd5da503bd2899bd9d393b46002dc964..b1d369b925d5ff5014d7d844386ec0e14423f9f6 100644 (file)
@@ -1,4 +1,11 @@
 //===- llvm/PassManager.h - Container for Passes ----------------*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This file defines the PassManager class.  This class is used to hold,
 // maintain, and optimize execution of Passes.  The PassManager class ensures
 #ifndef LLVM_PASSMANAGER_H
 #define LLVM_PASSMANAGER_H
 
+namespace llvm {
+
 class Pass;
 class Module;
+class ModuleProvider;
 template<class UnitType> class PassManagerT;
 
 class PassManager {
@@ -39,8 +49,9 @@ class Function;
 
 class FunctionPassManager {
   PassManagerT<Function> *PM;    // This is a straightforward Pimpl class
+  ModuleProvider *MP;
 public:
-  FunctionPassManager();
+  FunctionPassManager(ModuleProvider *P);
   ~FunctionPassManager();
 
   /// add - Add a pass to the queue of passes to run.  This passes
@@ -63,4 +74,6 @@ public:
   bool run(Function &F);
 };
 
+} // End llvm namespace
+
 #endif