[DebugInfo] Invert DIE order for range errors.
When printing an error for an invalid address range in a DIE, we used to print the child above the parent, which is counter intuitive. This patch reverses the order and indents the child to mimic the way we print the debug info section. llvm-svn: 333006
This commit is contained in:
parent
7e0b023302
commit
63eca15e95
|
@ -362,10 +362,9 @@ unsigned DWARFVerifier::verifyDieRanges(const DWARFDie &Die,
|
|||
ParentRI.Die.getTag() == DW_TAG_subprogram);
|
||||
if (ShouldBeContained && !ParentRI.contains(RI)) {
|
||||
++NumErrors;
|
||||
error() << "DIE address ranges are not "
|
||||
"contained in its parent's ranges:";
|
||||
Die.dump(OS, 0);
|
||||
error() << "DIE address ranges are not contained in its parent's ranges:";
|
||||
ParentRI.Die.dump(OS, 0);
|
||||
Die.dump(OS, 2);
|
||||
OS << "\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue