[PATCH] D98306: [ELF] Support . and $ in symbol names in expressions
    James Henderson via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Mar 12 02:45:27 PST 2021
    
    
  
jhenderson added inline comments.
================
Comment at: lld/ELF/ScriptParser.cpp:1419
+  if (!isValidSymbolName(tok))
     setError("malformed number: " + tok);
   script->referencedSymbols.push_back(tok);
----------------
Idle thought I had whislt taking a quick look at this change: this error message doesn't seem particularly suitable to me. There's no guarantee that the user was trying to write a number. It could easily be they wanted a symbol name.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98306/new/
https://reviews.llvm.org/D98306
    
    
More information about the llvm-commits
mailing list