mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
make domtree verification print something useful on failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
64c24db959
commit
57863b8ee0
@ -68,7 +68,14 @@ void DominatorTree::verifyAnalysis() const {
|
|||||||
|
|
||||||
DominatorTree OtherDT;
|
DominatorTree OtherDT;
|
||||||
OtherDT.getBase().recalculate(F);
|
OtherDT.getBase().recalculate(F);
|
||||||
assert(!compare(OtherDT) && "Invalid DominatorTree info!");
|
if (compare(OtherDT)) {
|
||||||
|
errs() << "DominatorTree is not up to date! Computed:\n";
|
||||||
|
print(errs());
|
||||||
|
|
||||||
|
errs() << "\nActual:\n";
|
||||||
|
OtherDT.print(errs());
|
||||||
|
abort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DominatorTree::print(raw_ostream &OS, const Module *) const {
|
void DominatorTree::print(raw_ostream &OS, const Module *) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user