Code refactoring.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2007-01-16 02:00:38 +00:00
parent 66eeb49d8f
commit 8f3f3d103a
2 changed files with 29 additions and 18 deletions

View File

@@ -86,6 +86,13 @@ class llvm::PMStack;
namespace llvm {
/// FunctionPassManager and PassManager, two top level managers, serve
/// as the public interface of pass manager infrastructure.
enum TopLevelManagerType {
TLM_Function, // FunctionPassManager
TLM_Pass // PassManager
};
//===----------------------------------------------------------------------===//
// PMTopLevelManager
//
@@ -118,6 +125,7 @@ public:
/// then return NULL.
Pass *findAnalysisPass(AnalysisID AID);
PMTopLevelManager(enum TopLevelManagerType t);
virtual ~PMTopLevelManager();
/// Add immutable pass and initialize it.