diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2017-12-06 09:27:48 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2017-12-06 09:27:48 +0000 |
commit | 898eb34b49e7507a3cc5d9e5e56a8601c289bb4b (patch) | |
tree | 69aa94c44258b3a8af44f8f4c7f8920a8d5a452c /llvm/lib/CodeGen/MachineDominators.cpp | |
parent | 3afa3ce88075043bcc84ecc4815e5c9076cc0c46 (diff) | |
download | bcm5719-llvm-898eb34b49e7507a3cc5d9e5e56a8601c289bb4b.tar.gz bcm5719-llvm-898eb34b49e7507a3cc5d9e5e56a8601c289bb4b.zip |
[[Machine]Dominators] Improved printout when verifyDomTree fails [NFC]
Include the function name in the printout.
llvm-svn: 319882
Diffstat (limited to 'llvm/lib/CodeGen/MachineDominators.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineDominators.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp index fcfa574ee6c..517ac29b645 100644 --- a/llvm/lib/CodeGen/MachineDominators.cpp +++ b/llvm/lib/CodeGen/MachineDominators.cpp @@ -148,7 +148,8 @@ void MachineDominatorTree::verifyDomTree() const { OtherDT.recalculate(F); if (getRootNode()->getBlock() != OtherDT.getRootNode()->getBlock() || DT->compare(OtherDT)) { - errs() << "MachineDominatorTree is not up to date!\nComputed:\n"; + errs() << "MachineDominatorTree for function " << F.getName() + << " is not up to date!\nComputed:\n"; DT->print(errs()); errs() << "\nActual:\n"; OtherDT.print(errs()); |