From d0c36ad34f45f5f6ef9653df8411ce9b5b1ace9a Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Fri, 30 Oct 2015 22:58:15 +0000 Subject: [PATCH] PM: Print the IR unit's name in debug output. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251723 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/PassManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index 4166babd63e..2ceb53d21b7 100644 --- a/include/llvm/IR/PassManager.h +++ b/include/llvm/IR/PassManager.h @@ -203,7 +203,8 @@ public: for (unsigned Idx = 0, Size = Passes.size(); Idx != Size; ++Idx) { if (DebugLogging) - dbgs() << "Running pass: " << Passes[Idx]->name() << "\n"; + dbgs() << "Running pass: " << Passes[Idx]->name() << " on " + << IR.getName() << "\n"; PreservedAnalyses PassPA = Passes[Idx]->run(IR, AM); -- 2.34.1