diff options
| author | George Rimar <grimar@accesssoftek.com> | 2018-07-03 14:16:19 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2018-07-03 14:16:19 +0000 |
| commit | b5d6e76bb7baba6885e92d0f8d639bf2b1da379d (patch) | |
| tree | f9ff575373678dc5126f0f1131afbb1d2aa6714f | |
| parent | 74cc4cfa9483477e6791c721a66ba56c0f5e3916 (diff) | |
| download | bcm5719-llvm-b5d6e76bb7baba6885e92d0f8d639bf2b1da379d.tar.gz bcm5719-llvm-b5d6e76bb7baba6885e92d0f8d639bf2b1da379d.zip | |
[ELF] - Add a comment. NFC.
Minor follow up for r336197
"[ELF] - Add support for '||' and '&&' in linker scripts."
llvm-svn: 336199
| -rw-r--r-- | lld/ELF/ScriptLexer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/ScriptLexer.cpp b/lld/ELF/ScriptLexer.cpp index 49e808e5d8f..9f81b42a603 100644 --- 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)); |

