[LLD] Report errors occurred while parsing debug info as warnings.
authorAlexey Lapshin <a.v.lapshin@mail.ru>
Thu, 27 Feb 2020 10:21:58 +0000 (13:21 +0300)
committerAlexey Lapshin <a.v.lapshin@mail.ru>
Fri, 28 Feb 2020 21:03:18 +0000 (00:03 +0300)
commit0a2d415bd059366dcd43889fae9c239d40a8144d
tree545ae7f28c6aec47cb4c69e246d6767c0effe10b
parente551b737c3c787f770709b9659c68b029e6b92dc
[LLD] Report errors occurred while parsing debug info as warnings.

Summary:
Extracted from D74773. Currently, errors happened while parsing
debug info are reported as errors. DebugInfoDWARF library treats such
errors as "Recoverable errors". This patch makes debug info errors
to be reported as warnings, to support DebugInfoDWARF approach.

Reviewers: ruiu, grimar, MaskRay, jhenderson, espindola

Reviewed By: MaskRay, jhenderson

Subscribers: emaste, aprantl, arichardson, arphaman, llvm-commits

Tags: #llvm, #debug-info, #lld

Differential Revision: https://reviews.llvm.org/D75234
lld/ELF/SyntheticSections.cpp
lld/test/ELF/gdb-index-invalid-ranges.s
lld/test/ELF/gdb-index-parse-fail.s