projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74cc4cf
)
[ELF] - Add a comment. NFC.
author
George Rimar
<grimar@accesssoftek.com>
Tue, 3 Jul 2018 14:16:19 +0000
(14:16 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Tue, 3 Jul 2018 14:16:19 +0000
(14:16 +0000)
Minor follow up for r336197
"[ELF] - Add support for '||' and '&&' in linker scripts."
llvm-svn: 336199
lld/ELF/ScriptLexer.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/ScriptLexer.cpp
b/lld/ELF/ScriptLexer.cpp
index
49e808e
..
9f81b42
100644
(file)
--- a/
lld/ELF/ScriptLexer.cpp
+++ b/
lld/ELF/ScriptLexer.cpp
@@
-116,6
+116,7
@@
void ScriptLexer::tokenize(MemoryBufferRef MB) {
}
// ">foo" is parsed to ">" and "foo", but ">>" is parsed to ">>".
+ // "|", "||", "&" and "&&" are different operators.
if (S.startswith("<<") || S.startswith("<=") || S.startswith(">>") ||
S.startswith(">=") || S.startswith("||") || S.startswith("&&")) {
Vec.push_back(S.substr(0, 2));