[PATCH] D44562: [ELF] Rework debug line parsing to use llvm::Error and callbacks (LLD-side)

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 22 07:52:04 PDT 2018


jhenderson updated this revision to Diff 139441.
jhenderson added a comment.

Add a "remark" method to the LLD ErrorHandler, and use that instead of warnings to report problems with the debug line. Also added another case to the testing, to demonstrate failures via the callback in contrast to failures via the return value.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D44562

Files:
  Common/ErrorHandler.cpp
  ELF/InputFiles.cpp
  include/lld/Common/ErrorHandler.h
  test/ELF/Inputs/undef-bad-debug.s
  test/ELF/Inputs/undef-bad-debug2.s
  test/ELF/no-line-parser-errors-if-empty-section.s
  test/ELF/no-line-parser-errors-if-no-section.s
  test/ELF/undef.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44562.139441.patch
Type: text/x-patch
Size: 11161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180322/de78d75a/attachment.bin>


More information about the llvm-commits mailing list