aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/PassManagerT.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h
index 5583b9b918..d5c483f752 100644
--- a/lib/VMCore/PassManagerT.h
+++ b/lib/VMCore/PassManagerT.h
@@ -128,8 +128,12 @@ public:
#endif
// Run the sub pass!
- MadeChanges |= Traits::runPass(P, M);
+ bool Changed = Traits::runPass(P, M);
+ MadeChanges |= Changed;
+ if (Changed)
+ PMDebug::PrintPassInformation(getDepth()+1, "Made Modification", P,
+ (Value*)M);
PMDebug::PrintAnalysisSetInfo(getDepth(), "Destroyed", P, Destroyed);
PMDebug::PrintAnalysisSetInfo(getDepth(), "Provided", P, Provided);