summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-16 21:38:42 +0000
committerDan Gohman <gohman@apple.com>2010-08-16 21:38:42 +0000
commit7578ea887de6a7cb22c324b629101683a0afb3c5 (patch)
tree29282db7b132186789fa415a5a1880c2af2df273 /include
parentbc1fb2b6faa79a15ee61526a802c9de834d70041 (diff)
downloadllvm-7578ea887de6a7cb22c324b629101683a0afb3c5.tar.gz
llvm-7578ea887de6a7cb22c324b629101683a0afb3c5.tar.bz2
llvm-7578ea887de6a7cb22c324b629101683a0afb3c5.tar.xz
Eliminate the TopLevelManagerType enum; instead, just make
PMTopLevelManager's constructor take a PMDataManager *, which already provides the needed abstraction support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/PassManagers.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h
index 4ef73b878a..e918091b4a 100644
--- a/include/llvm/PassManagers.h
+++ b/include/llvm/PassManagers.h
@@ -98,13 +98,6 @@ namespace llvm {
class Timer;
class PMDataManager;
-/// FunctionPassManager and PassManager, two top level managers, serve
-/// as the public interface of pass manager infrastructure.
-enum TopLevelManagerType {
- TLM_Function, // FunctionPassManager
- TLM_Pass // PassManager
-};
-
// enums for debugging strings
enum PassDebuggingString {
EXECUTION_MSG, // "Executing Pass '"
@@ -199,7 +192,7 @@ public:
/// Find analysis usage information for the pass P.
AnalysisUsage *findAnalysisUsage(Pass *P);
- explicit PMTopLevelManager(enum TopLevelManagerType t);
+ explicit PMTopLevelManager(PMDataManager *PMDM);
virtual ~PMTopLevelManager();
/// Add immutable pass and initialize it.