[PATCH] D18545: [ELF] - Better diagnostics for linker script errors

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 04:42:03 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.

Patch adds "line X:" to output for linker script errors.

It is sometimes difficult to understand what is going on when you
see something like ": expected, but got =".
With this patch that would be: "line XXX: : expected, but got =".

If this is reasonable I can also add the exact line of script to the output
in separate patch if this be landed (so users will not need to search
the line by number by himself).

http://reviews.llvm.org/D18545

Files:
  ELF/LinkerScript.cpp
  test/ELF/linkerscript-diagnostic.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18545.51892.patch
Type: text/x-patch
Size: 5013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160329/3efaee45/attachment.bin>


More information about the llvm-commits mailing list