[lld] [LLD][COFF] Support anti-dependency symbols (PR #112542)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 02:43:44 PDT 2024
================
@@ -737,7 +737,7 @@ StringRef LinkerDriver::mangleMaybe(Symbol *s) {
// If we find a similar mangled symbol, make this an alias to it and return
// its name.
log(unmangled->getName() + " aliased to " + mangled->getName());
- unmangled->weakAlias = ctx.symtab.addUndefined(mangled->getName());
+ unmangled->setWeakAlias(ctx.symtab.addUndefined(mangled->getName()));
----------------
cjacek wrote:
We could make it private, but it will need a few more changes. As `getWeakAlias` follows the chain, it's not a replacement for accessing `weakAlias` directly. I will create a follow-up, thanks!
https://github.com/llvm/llvm-project/pull/112542
More information about the llvm-commits
mailing list