[DebugInfo] Print non-verbose output at some point as verbose output
authorJames Henderson <james.henderson@sony.com>
Tue, 26 May 2020 10:53:24 +0000 (11:53 +0100)
committerJames Henderson <james.henderson@sony.com>
Tue, 9 Jun 2020 13:24:53 +0000 (14:24 +0100)
commitdbd26fe0b6ac8b33067817ef770d82afbe268c05
treec29f0d48953b2abd4c580d1f72fc7b85cd2e3407
parenta375463ad0630cab3a5b62d534ad64f822a20406
[DebugInfo] Print non-verbose output at some point as verbose output

Verbose and non-verbose parsing of .debug_line produced their output at
different points in the program. The most obvious impact of this was
that error messages were produced at different times, but it also
potentially reduced what clients could do by customising the stream or
warning/error handlers.

This change makes the two variants consistent by printing non-verbose
output inline, the same as verbose output.

Testing of the error messages has been modified to check the messages
always appear in the same location to illustrate the behaviour.

Reviewed by: JDevlieghere, dblaikie, MaskRay, labath

Differential Revision: https://reviews.llvm.org/D80989
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_line_dwarf64_large_table.s
llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp