[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Wed Jan 10 17:10:43 PST 2007
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.114 -> 1.115
---
Log message:
Add PassManagerType enum.
---
Diffs of the changes: (+12 -0)
PassManager.cpp | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.114 llvm/lib/VMCore/PassManager.cpp:1.115
--- llvm/lib/VMCore/PassManager.cpp:1.114 Wed Jan 10 18:19:00 2007
+++ llvm/lib/VMCore/PassManager.cpp Wed Jan 10 19:10:25 2007
@@ -291,6 +291,10 @@
return PassVector.size();
}
+ virtual PassManagerType getPassManagerType() {
+ assert ( 0 && "Invalid use of getPassManagerType");
+ return PMT_Unknown;
+ }
protected:
// If a FunctionPass F is the last user of ModulePass info M
@@ -359,6 +363,10 @@
BasicBlockPass *BP = static_cast<BasicBlockPass *>(PassVector[N]);
return BP;
}
+
+ virtual PassManagerType getPassManagerType() {
+ return PMT_BasicBlockPassManager;
+ }
};
//===----------------------------------------------------------------------===//
@@ -413,6 +421,9 @@
return FP;
}
+ virtual PassManagerType getPassManagerType() {
+ return PMT_FunctionPassManager;
+ }
private:
// Active Pass Manager
BBPassManager *activeBBPassManager;
@@ -529,6 +540,7 @@
return MP;
}
+ virtual PassManagerType getPassManagerType() { return PMT_ModulePassManager; }
private:
// Active Pass Manager
FPPassManager *activeFunctionPassManager;
More information about the llvm-commits
mailing list