From 6ff53e77ccb86cfda1760de6cb90b47f2d55a365 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 1 Feb 2002 04:53:36 +0000 Subject: [PATCH] Add more debug output git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1627 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassManagerT.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h index 5583b9b9187..d5c483f7524 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); -- 2.34.1