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 | 3371137454cb5f1c68fe09f0901e40874034de18 (patch) | |
tree | 7d7822d8ac3b0b724e72cfc8be75f6d4d0e39fb1 /lib/IR | |
parent | 3126a95a415482146b41cb2cbf319f9ab38f9609 (diff) |
[[Machine]Dominators] Improved printout when verifyDomTree fails [NFC]
Include the function name in the printout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Dominators.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IR/Dominators.cpp b/lib/IR/Dominators.cpp index a6127a5ef08..ad448a3f240 100644 --- a/lib/IR/Dominators.cpp +++ b/lib/IR/Dominators.cpp @@ -315,7 +315,8 @@ void DominatorTree::verifyDomTree() const { DominatorTree OtherDT; OtherDT.recalculate(F); if (compare(OtherDT)) { - errs() << "DominatorTree is not up to date!\nComputed:\n"; + errs() << "DominatorTree for function " << F.getName() + << " is not up to date!\nComputed:\n"; print(errs()); errs() << "\nActual:\n"; OtherDT.print(errs()); |