[DebugInfo] Print version in error message in decimal
authorJames Henderson <james.henderson@sony.com>
Tue, 11 Feb 2020 14:11:01 +0000 (14:11 +0000)
committerJames Henderson <james.henderson@sony.com>
Wed, 12 Feb 2020 14:49:22 +0000 (14:49 +0000)
commit1da62b51a5f00a4b84843f3ecc8a495de618afc8
tree904317af5cefe47d8e6b43d9eaae281479f59e97
parent61b35e4111160fe834a00c33d040e01150b576ac
[DebugInfo] Print version in error message in decimal

Also remove some test duplication and add a test case that shows the
maximum version is rejected (this also shows that the value in the error
message is actually in decimal, and not just missing an 0x prefix).

Reviewed by: dblaikie

Differential Revision: https://reviews.llvm.org/D74403
lld/test/ELF/undef.s
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp