PM: Print the IR unit's name in debug output. NFC
authorJustin Bogner <mail@justinbogner.com>
Fri, 30 Oct 2015 22:58:15 +0000 (22:58 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 30 Oct 2015 22:58:15 +0000 (22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251723 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/PassManager.h

index 4166bab..2ceb53d 100644 (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);