summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-10-30 22:58:15 +0000
committerJustin Bogner <mail@justinbogner.com>2015-10-30 22:58:15 +0000
commit2275b4e61852c816001f5fbd786ba3311dd73504 (patch)
tree2d758b785dca21092a5f84f98f3f43613447572c /llvm
parentd612918367abe0e9d1dd1d37b33d270d6e5cb24f (diff)
downloadbcm5719-llvm-2275b4e61852c816001f5fbd786ba3311dd73504.tar.gz
bcm5719-llvm-2275b4e61852c816001f5fbd786ba3311dd73504.zip
PM: Print the IR unit's name in debug output. NFC
llvm-svn: 251723
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/PassManager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h
index 4166babd63e..2ceb53d21b7 100644
--- a/llvm/include/llvm/IR/PassManager.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud