diff options
| author | Devang Patel <dpatel@apple.com> | 2008-06-03 01:02:16 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-06-03 01:02:16 +0000 |
| commit | e3d488a6381e89f8979019038f36a2ca11450b03 (patch) | |
| tree | 9bf8886cea7d24e65084224ecbf89cc7ca32d496 /lib/VMCore | |
| parent | 03eb27edd52bfab6111242ec1b6b7df264d6caa4 (diff) | |
| download | external_llvm-e3d488a6381e89f8979019038f36a2ca11450b03.zip external_llvm-e3d488a6381e89f8979019038f36a2ca11450b03.tar.gz external_llvm-e3d488a6381e89f8979019038f36a2ca11450b03.tar.bz2 | |
Add debugging aid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
| -rw-r--r-- | lib/VMCore/PassManager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index add6529..8b525f6 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -621,9 +621,15 @@ void PMDataManager::removeNotPreservedAnalysis(Pass *P) { std::map<AnalysisID, Pass*>::iterator Info = I++; if (!dynamic_cast<ImmutablePass*>(Info->second) && std::find(PreservedSet.begin(), PreservedSet.end(), Info->first) == - PreservedSet.end()) + PreservedSet.end()) { // Remove this analysis AvailableAnalysis.erase(Info); + if (PassDebugging >= Details) { + Pass *S = Info->second; + cerr << " -- " << P->getPassName() << " is not preserving "; + cerr << S->getPassName() << "\n"; + } + } } // Check inherited analysis also. If P is not preserving analysis |
