[PATCH] D16667: ELF: Do not use fatal in LinkerScript.cpp.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 05:39:20 PST 2016


On 27 January 2016 at 18:44, Rui Ueyama <ruiu at google.com> wrote:
> ruiu created this revision.
> ruiu added a reviewer: rafael.
> ruiu added a subscriber: llvm-commits.
> Propagating errors back to callers is annoying in recursive descendent
> parser because they are naturally constructed as mutually recursive
> functions. In this patch, I took a simple approach. The accessors of
> the token stream behaves as if they are at EOF once we saw any errors.
> It naturally makes all functions to return.
> This is the final change to not use fatal in the linker.
> http://reviews.llvm.org/D16667
> Files:
>   ELF/LinkerScript.cpp

More information about the llvm-commits mailing list