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

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 18:44:43 PST 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16667.46209.patch
Type: text/x-patch
Size: 4853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160128/0f55791b/attachment.bin>


More information about the llvm-commits mailing list