[lld] 026972a - [ELF] Remove obsoleted comment after #99567

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 16:45:13 PDT 2024


Author: Fangrui Song
Date: 2024-07-25T16:45:09-07:00
New Revision: 026972af9c3cbd85b654b67a5b5c3b754a78a997

URL: https://github.com/llvm/llvm-project/commit/026972af9c3cbd85b654b67a5b5c3b754a78a997
DIFF: https://github.com/llvm/llvm-project/commit/026972af9c3cbd85b654b67a5b5c3b754a78a997.diff

LOG: [ELF] Remove obsoleted comment after #99567

Added: 
    

Modified: 
    lld/ELF/ScriptLexer.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/ScriptLexer.cpp b/lld/ELF/ScriptLexer.cpp
index 65055086d6bc2..40c4637004352 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-commits mailing list