summaryrefslogtreecommitdiffstats
path: root/lld/ELF/ScriptParser.h
Commit message (Collapse)AuthorAgeFilesLines
* Simplify ScriptParser.Rui Ueyama2016-12-011-1/+1
| | | | | | | | - Rename currentBuffer -> getCurrentMB to start it with verb. - Simplify containsString. - Add llvm_unreachable at end of getCurrentMB. llvm-svn: 288310
* Make get{Line,Column}Number members of StringParser.Rui Ueyama2016-12-011-1/+5
| | | | | | This patch also renames currentLocation getCurrentLocation. llvm-svn: 288308
* [ELF] Print file:line for 'undefined section' errorsEugene Leviant2016-11-281-0/+1
| | | | | | Differential revision: https://reviews.llvm.org/D27108 llvm-svn: 288019
* [ELF] Better error reporting for linker scriptsEugene Leviant2016-11-211-7/+7
| | | | | | Differential revision: https://reviews.llvm.org/D26795 llvm-svn: 287547
* Rename skip(StringRef) -> consume(StringRef).Rui Ueyama2016-10-171-1/+1
| | | | | | | | skip() and skip(StringRef) were overloaded functions that have different semantics. This patch rename one of the functions to avoid function overloading. llvm-svn: 284396
* ELF: Add a skip() overload to ignore any tokenJustin Bogner2016-10-171-0/+1
| | | | | | | | | Most functions that return StringRef should check their return values, so I'm planning on marking StringRef [[nodiscard]]. This requires splitting up functions like next() that are sometimes just used for side effects. llvm-svn: 284363
* Remove dead ctor.Rui Ueyama2016-07-301-2/+0
| | | | llvm-svn: 277255
* Create Strings.cpp and move string manipulation functions to that file.Rui Ueyama2016-06-291-2/+0
| | | | llvm-svn: 274109
* Apply clang-tidy's misc-move-constructor-init to lld.Benjamin Kramer2016-06-031-1/+2
| | | | | | No functionality change intended. llvm-svn: 271686
* Add `explicit`.Rui Ueyama2016-05-161-2/+3
| | | | llvm-svn: 269703
* Use ScriptParserBase features to parse linker script expressions.Rui Ueyama2016-04-231-0/+1
| | | | | | | | Previously, we have re-implemented utility functions such as `expect` or `next` in LinkerScript.cpp. This patch reuses the existing implementation that is in ScriptParser.cpp. llvm-svn: 267255
* Devirtualize ScriptParserBase. NFC.Rui Ueyama2016-04-221-3/+0
| | | | | | | | | | | ScriptParserBase class is a container of collection of various methods to parse linker script-ish text. It had a virtual method `run` to run the parser. But we don't have to enforce its descendents to implement that. It's up to them. This patch removes pure virtual function `run`. llvm-svn: 267246
* [lld] Fix build failure from r265600Adhemerval Zanella2016-04-061-0/+1
| | | | llvm-svn: 265603
* [lld] [ELF] Add ScriptParserBase classAdhemerval Zanella2016-04-061-0/+50
This patch add a base script tokenizer class to decouple parsing from linker script handling. The idea is to use this base class on dynamic list parsing (--dynamic-list option). No functionality added. llvm-svn: 265600
OpenPOWER on IntegriCloud