Add debugging aid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-06-03 01:02:16 +00:00
parent c702a9ed1c
commit e62f750784

View File

@ -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