[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Tue Dec 19 12:12:54 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.108 -> 1.109
---
Log message:
Now, there is additional layer, referred in the comment,
in place to handle this correctly.
---
Diffs of the changes: (+0 -11)
PassManager.cpp | 11 -----------
1 files changed, 11 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.108 llvm/lib/VMCore/PassManager.cpp:1.109
--- llvm/lib/VMCore/PassManager.cpp:1.108 Tue Dec 19 13:46:59 2006
+++ llvm/lib/VMCore/PassManager.cpp Tue Dec 19 14:12:38 2006
@@ -153,10 +153,6 @@
/// then return NULL.
Pass *findAnalysisPass(AnalysisID AID);
- inline void clearManagers() {
- PassManagers.clear();
- }
-
virtual ~PMTopLevelManager() {
for (std::vector<Pass *>::iterator I = PassManagers.begin(),
E = PassManagers.end(); I != E; ++I)
@@ -1150,13 +1146,6 @@
}
FunctionPassManager::~FunctionPassManager() {
- // Note : FPM maintains one entry in PassManagers vector.
- // This one entry is FPM itself. This is not ideal. One
- // alternative is have one additional layer between
- // FunctionPassManager and FunctionPassManagerImpl.
- // Meanwhile, to avoid going into infinte loop, first
- // remove FPM from its PassMangers vector.
- FPM->clearManagers();
delete FPM;
}
More information about the llvm-commits
mailing list