aboutsummaryrefslogtreecommitdiffstats
path: root/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
commite62f7507841e487d0b8135424ccb5fd59dcbeedd (patch)
tree9bf8886cea7d24e65084224ecbf89cc7ca32d496 /lib
parentc702a9ed1c99fc520fa8e003f88949a74e0c269f (diff)
downloadexternal_llvm-e62f7507841e487d0b8135424ccb5fd59dcbeedd.zip
external_llvm-e62f7507841e487d0b8135424ccb5fd59dcbeedd.tar.gz
external_llvm-e62f7507841e487d0b8135424ccb5fd59dcbeedd.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')
-rw-r--r--lib/VMCore/PassManager.cpp8
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