mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +00:00
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:
parent
c702a9ed1c
commit
e62f750784
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user