summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-06-03 01:02:16 +0000
committerDevang Patel <dpatel@apple.com>2008-06-03 01:02:16 +0000
commitbb4720c43fc88fd0b0b72b12476158a1bbcf3d7b (patch)
tree648d254c5ea12a2014e6c33e0592a7c23740278c /llvm/lib
parent2ad7e7341c202c09e945fb130d8bce26c4b82a0d (diff)
downloadbcm5719-llvm-bb4720c43fc88fd0b0b72b12476158a1bbcf3d7b.tar.gz
bcm5719-llvm-bb4720c43fc88fd0b0b72b12476158a1bbcf3d7b.zip
Add debugging aid.
llvm-svn: 51891
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/PassManager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp
index add652986d1..8b525f67b57 100644
--- a/llvm/lib/VMCore/PassManager.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud