[PATCH] D104529: [LLD] [COFF] Avoid doing repeated fuzzy symbol lookup for each iteration. NFC.
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 19 12:33:01 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe1adf90826a5: [LLD] [COFF] Avoid doing repeated fuzzy symbol lookup for each iteration. NFC. (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104529/new/
https://reviews.llvm.org/D104529
Files:
lld/COFF/Driver.cpp
Index: lld/COFF/Driver.cpp
===================================================================
--- lld/COFF/Driver.cpp
+++ lld/COFF/Driver.cpp
@@ -549,7 +549,7 @@
StringRef LinkerDriver::mangleMaybe(Symbol *s) {
// If the plain symbol name has already been resolved, do nothing.
Undefined *unmangled = dyn_cast<Undefined>(s);
- if (!unmangled)
+ if (!unmangled || unmangled->getWeakAlias())
return "";
// Otherwise, see if a similar, mangled symbol exists in the symbol table.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104529.353209.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210619/a1842ce5/attachment.bin>
More information about the llvm-commits
mailing list