[lld] 1bd5df7 - [ELF] Correct a comment about ^=. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 17:52:53 PDT 2023
Author: Fangrui Song
Date: 2023-09-15T17:52:48-07:00
New Revision: 1bd5df7af65b71824db8c13164f6c21acc74e965
URL: https://github.com/llvm/llvm-project/commit/1bd5df7af65b71824db8c13164f6c21acc74e965
DIFF: https://github.com/llvm/llvm-project/commit/1bd5df7af65b71824db8c13164f6c21acc74e965.diff
LOG: [ELF] Correct a comment about ^=. NFC
GNU ld added ^= support in July 2023.
Added:
Modified:
lld/ELF/ScriptParser.cpp
Removed:
################################################################################
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp
index 3fbb49d440c0227..55b10f0c59b516c 100644
--- a/lld/ELF/ScriptParser.cpp
+++ b/lld/ELF/ScriptParser.cpp
@@ -1083,7 +1083,7 @@ SymbolAssignment *ScriptParser::readSymbolAssignment(StringRef name) {
StringRef op = next();
assert(op == "=" || op == "*=" || op == "/=" || op == "+=" || op == "-=" ||
op == "&=" || op == "^=" || op == "|=" || op == "<<=" || op == ">>=");
- // Note: GNU ld does not support %= or ^=.
+ // Note: GNU ld does not support %=.
Expr e = readExpr();
if (op != "=") {
std::string loc = getCurrentLocation();
More information about the llvm-commits
mailing list