From 898eb34b49e7507a3cc5d9e5e56a8601c289bb4b Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Wed, 6 Dec 2017 09:27:48 +0000 Subject: [[Machine]Dominators] Improved printout when verifyDomTree fails [NFC] Include the function name in the printout. llvm-svn: 319882 --- llvm/lib/IR/Dominators.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/IR/Dominators.cpp') diff --git a/llvm/lib/IR/Dominators.cpp b/llvm/lib/IR/Dominators.cpp index a6127a5ef08..ad448a3f240 100644 --- a/llvm/lib/IR/Dominators.cpp +++ b/llvm/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()); -- cgit v1.2.3