OSDN Git Service

[DebugInfo] Print line table extended opcode bytes if parsing fails
authorJames Henderson <james.henderson@sony.com>
Wed, 17 Jun 2020 10:29:29 +0000 (11:29 +0100)
committerJames Henderson <james.henderson@sony.com>
Tue, 23 Jun 2020 09:04:02 +0000 (10:04 +0100)
commit9782c922cb218cd39b7510be469f61f586414cb7
treef5245a1aecae4d7ce7d77b21550c00b4285ae22d
parent7a55d984971c11daa55e9423934f98bdc9c04f2f
[DebugInfo] Print line table extended opcode bytes if parsing fails

Previously, if there was an error whilst parsing the operands of an
extended opcode, the operands would be treated as zero and printed. This
could potentially be slightly confusing. This patch changes the
behaviour to print the raw bytes instead.

Reviewed by: ikudrin

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