mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
[ELF] - Add a comment. NFC.
Minor follow up for r336197 "[ELF] - Add support for '||' and '&&' in linker scripts." llvm-svn: 336199
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user