PM: Print the IR unit's name in debug output. NFC

llvm-svn: 251723
This commit is contained in:
Justin Bogner 2015-10-30 22:58:15 +00:00
parent d612918367
commit 2275b4e618
1 changed files with 2 additions and 1 deletions

View File

@ -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);