[llvm-branch-commits] [lld] 07ef078 - [ELF] Remove obsoleted comment after #99567

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 29 01:06:53 PDT 2024


Author: Fangrui Song
Date: 2024-07-29T10:06:37+02:00
New Revision: 07ef07813483c6ffa721f795c475cdc3f2341723

URL: https://github.com/llvm/llvm-project/commit/07ef07813483c6ffa721f795c475cdc3f2341723
DIFF: https://github.com/llvm/llvm-project/commit/07ef07813483c6ffa721f795c475cdc3f2341723.diff

LOG: [ELF] Remove obsoleted comment after #99567

(cherry picked from commit 026972af9c3cbd85b654b67a5b5c3b754a78a997)

Added: 
    

Modified: 
    lld/ELF/ScriptLexer.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/ScriptLexer.cpp b/lld/ELF/ScriptLexer.cpp
index c8c02ab0f3e09..847cd8423b49a 100644
--- a/lld/ELF/ScriptLexer.cpp
+++ b/lld/ELF/ScriptLexer.cpp
@@ -20,11 +20,6 @@
 // in various corner cases. We do not care much about efficiency because
 // the time spent in parsing linker scripts is usually negligible.
 //
-// Our grammar of the linker script is LL(2), meaning that it needs at
-// most two-token lookahead to parse. The only place we need two-token
-// lookahead is labels in version scripts, where we need to parse "local :"
-// as if "local:".
-//
 // Overall, this lexer works fine for most linker scripts. There might
 // be room for improving compatibility, but that's probably not at the
 // top of our todo list.


        


More information about the llvm-branch-commits mailing list