[PATCH] [lld] Teach LLD how to parse complete linker scripts

Rafael Auler rafaelauler at gmail.com
Tue Oct 21 22:41:24 PDT 2014


I changed the AST nodes creation according to Rui's suggestion.
I converted some asserts to error messages, according to Shankar's suggestion. There are still some asserts left that are only to check code sanity and are not appropriate for error messages.
I added test cases that exercises parsing errors (incomplete linker scripts) according to Shankar's suggestion.
I also changed the expression parsing functions to eliminate duplicated code and make it simpler.

http://reviews.llvm.org/D5852

Files:
  include/lld/ReaderWriter/LinkerScript.h
  lib/ReaderWriter/LinkerScript.cpp
  test/LinkerScript/expr-precedence.test
  test/LinkerScript/incomplete-ternary.test
  test/LinkerScript/missing-entry-symbol.test
  test/LinkerScript/missing-input-file-name.test
  test/LinkerScript/missing-input-sections.test
  test/LinkerScript/missing-operand.test
  test/LinkerScript/missing-output-section-name.test
  test/LinkerScript/missing-symbol.test
  test/LinkerScript/sections.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5852.15233.patch
Type: text/x-patch
Size: 92364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141022/ec1c33af/attachment.bin>


More information about the llvm-commits mailing list