[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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4853 bytes
Desc: not available
More information about the llvm-commits