[PATCH] D29576: [ELF] - Change tokenizer to read tokens "on fly".
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 01:08:21 PST 2017
grimar created this revision.
Previously LLD linkerscript tokenizer worked with pre-created
list of tokens. That was not optimal, because sometimes tokens values are context dependent.
Like we were not able to parse "5*5" because in previous approach was impossible
to know if that are 3 tokens (math expression) or a single token representing file name mask.
Patch opens road to context-specific tokens extraction.
https://reviews.llvm.org/D29576
Files:
ELF/LinkerScript.cpp
ELF/ScriptParser.cpp
ELF/ScriptParser.h
test/ELF/linkerscript/diagnostic.s
test/ELF/version-script-err.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29576.87193.patch
Type: text/x-patch
Size: 9729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170206/f5e86f35/attachment.bin>
More information about the llvm-commits
mailing list