[lld] [ELF] PHDRS update while condition and phdrs.s unclose2.lds output (PR #100918)
Hongyu Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 11:28:33 PDT 2024
================
@@ -231,6 +231,23 @@ ScriptLexer::Token ScriptLexer::till(StringRef tok) {
return {};
}
+ScriptLexer::Token ScriptLexer::readNameTill(StringRef tok) {
+ // this behaves like till but expects that token to be an
+ // identify of quoted string
+ StringRef str = next();
+ if (str.starts_with("\""))
+ str = str.substr(1, str.size() - 2);
+ if (str == tok)
+ return {};
+ if (str == "(" || str == ")" || str == "}")
+ setError(tok + " is missing before " + str);
----------------
yugier wrote:
Fixed. Please let me know if its in the format you want to have.
https://github.com/llvm/llvm-project/pull/100918
More information about the llvm-commits
mailing list