mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 08:07:51 +00:00
[[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
This commit is contained in:
parent
3126a95a41
commit
3371137454
@ -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());
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user