[DebugInfo] Unify Cursor usage for all debug line opcodes
authorJames Henderson <james.henderson@sony.com>
Wed, 10 Jun 2020 13:00:36 +0000 (14:00 +0100)
committerJames Henderson <james.henderson@sony.com>
Wed, 17 Jun 2020 08:19:24 +0000 (09:19 +0100)
commitb21794a91ccc3b6000f05f1080dbce30455c7061
treec6091cfc25a76a13891e111f67c02a59983a63d5
parentd1b4e6a0d1ff1bdc6aa7a8c61437e89f52231dce
[DebugInfo] Unify Cursor usage for all debug line opcodes

This is a natural extension of the previous changes to use the Cursor
class independently in the standard and extended opcode paths, and in
turn allows delaying error handling until the entire line has been
printed in verbose mode, removing interleaved output in some cases.

Reviewed by: MaskRay, JDevlieghere

Differential Revision: https://reviews.llvm.org/D81562
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test