[ELF] Rework debug line parsing to use llvm::Error and callbacks (LLD-side)
authorJames Henderson <jh7370@my.bristol.ac.uk>
Thu, 10 May 2018 10:52:21 +0000 (10:52 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Thu, 10 May 2018 10:52:21 +0000 (10:52 +0000)
commitd621037788c3038a57e13eacb0d537954bc1556c
tree9a37a456f5e67aa65917f74a90d285f0ebe8ad18
parenta3acf99e5929409401e94f6beaf48ba5d9f0bb7f
[ELF] Rework debug line parsing to use llvm::Error and callbacks (LLD-side)

Reviewed by: ruiu, grimar, espindola

Differential Revision: https://reviews.llvm.org/D44562

Summary:
r331971 changes the debug line parser interface to report LLVM errors in an
interface that different executables can use, rather than always being printed
directly as warnings to stderr. This change allows LLD to make use of the new
interface and call its own warning methods to report problems.

llvm-svn: 331972
lld/ELF/InputFiles.cpp
lld/test/ELF/Inputs/undef-bad-debug.s
lld/test/ELF/no-line-parser-errors-if-empty-section.s [new file with mode: 0644]
lld/test/ELF/no-line-parser-errors-if-no-section.s [new file with mode: 0644]
lld/test/ELF/undef.s