[llvm] r251723 - PM: Print the IR unit's name in debug output. NFC
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 30 15:58:15 PDT 2015
Author: bogner
Date: Fri Oct 30 17:58:15 2015
New Revision: 251723
URL: http://llvm.org/viewvc/llvm-project?rev=251723&view=rev
Log:
PM: Print the IR unit's name in debug output. NFC
Modified:
llvm/trunk/include/llvm/IR/PassManager.h
Modified: llvm/trunk/include/llvm/IR/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/PassManager.h?rev=251723&r1=251722&r2=251723&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h (original)
+++ llvm/trunk/include/llvm/IR/PassManager.h Fri Oct 30 17:58:15 2015
@@ -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);
More information about the llvm-commits
mailing list