[ELF] - Implemented comparsion operators for linkerscript.

Patch adds support of <,>,!=,==,>=,<= operators.

Differential revision: http://reviews.llvm.org/D19419

llvm-svn: 267382
This commit is contained in:
George Rimar
2016-04-25 08:14:41 +00:00
parent 1a4f89ab0a
commit ab9390664f
3 changed files with 146 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ std::vector<StringRef> ScriptParserBase::tokenize(StringRef S) {
// Unquoted token
size_t Pos = S.find_first_not_of(
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
"0123456789_.$/\\~=+[]*?-:");
"0123456789_.$/\\~=+[]*?-:!<>");
// A character that cannot start a word (which is usually a
// punctuation) forms a single character token.
if (Pos == 0)