[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Mon Nov 13 14:53:34 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.21 -> 1.22
---
Log message:
Update PassManagerImpl_New::analysisCurrentlyAvailable to check all
managed passmanagers.
---
Diffs of the changes: (+5 -2)
PassManager.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.21 llvm/lib/VMCore/PassManager.cpp:1.22
--- llvm/lib/VMCore/PassManager.cpp:1.21 Mon Nov 13 16:40:09 2006
+++ llvm/lib/VMCore/PassManager.cpp Mon Nov 13 16:53:19 2006
@@ -484,8 +484,11 @@
/// Return true IFF AnalysisID AID is currently available.
bool PassManagerImpl_New::analysisCurrentlyAvailable(AnalysisID AID) {
- // TODO : Check inactive managers
- return activeManager->analysisCurrentlyAvailable(AID);
+ bool available = false;
+ for (std::vector<ModulePassManager_New *>::iterator itr = PassManagers.begin(),
+ e = PassManagers.end(); !available && itr != e; ++itr)
+ available = (*itr)->analysisCurrentlyAvailable(AID);
+ return available;
}
/// Schedule pass P for execution. Make sure that passes required by
More information about the llvm-commits
mailing list