[lld] [ELF] Added `struct Token` and changed `next()` and `peek()` to return Token (PR #100180)
Hongyu Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 15:17:48 PDT 2024
================
@@ -90,6 +90,22 @@ std::string ScriptLexer::getCurrentLocation() {
return (filename + ":" + Twine(getLineNumber())).str();
}
+std::string ScriptLexer::joinTokens(size_t begin, size_t end) {
----------------
yugier wrote:
This function may not be needed once the Lexer can be fully stateful one. I plan to keep this for temporary resolution for printing out StringRef from `struct Token`
https://github.com/llvm/llvm-project/pull/100180
More information about the llvm-commits
mailing list