forked from OSchip/llvm-project
[[Machine]Dominators] Improved printout when verifyDomTree fails [NFC]
Include the function name in the printout. llvm-svn: 319882
This commit is contained in:
parent
3afa3ce880
commit
898eb34b49
|
@ -148,7 +148,8 @@ void MachineDominatorTree::verifyDomTree() const {
|
||||||
OtherDT.recalculate(F);
|
OtherDT.recalculate(F);
|
||||||
if (getRootNode()->getBlock() != OtherDT.getRootNode()->getBlock() ||
|
if (getRootNode()->getBlock() != OtherDT.getRootNode()->getBlock() ||
|
||||||
DT->compare(OtherDT)) {
|
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());
|
DT->print(errs());
|
||||||
errs() << "\nActual:\n";
|
errs() << "\nActual:\n";
|
||||||
OtherDT.print(errs());
|
OtherDT.print(errs());
|
||||||
|
|
|
@ -315,7 +315,8 @@ void DominatorTree::verifyDomTree() const {
|
||||||
DominatorTree OtherDT;
|
DominatorTree OtherDT;
|
||||||
OtherDT.recalculate(F);
|
OtherDT.recalculate(F);
|
||||||
if (compare(OtherDT)) {
|
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());
|
print(errs());
|
||||||
errs() << "\nActual:\n";
|
errs() << "\nActual:\n";
|
||||||
OtherDT.print(errs());
|
OtherDT.print(errs());
|
||||||
|
|
Loading…
Reference in New Issue