[lld] [lld][WebAssembly] Match the ELF linker in transitioning away from archive indexes. (PR #78658)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 09:35:02 PST 2024
================
@@ -256,10 +257,12 @@ void LinkerDriver::addFile(StringRef path) {
if (fs::exists(importFile))
readImportFile(importFile.str());
+ auto members = getArchiveMembers(mbref);
+
// Handle -whole-archive.
if (inWholeArchive) {
- for (MemoryBufferRef &m : getArchiveMembers(mbref)) {
- auto *object = createObjectFile(m, path);
+ for (const std::pair<MemoryBufferRef, uint64_t> &p : members) {
----------------
sbc100 wrote:
I suppose do, but I'm also just copying this code from the ELF linker. I wonder if llvm's policy here is still to avoid these kind of auto usages?
https://github.com/llvm/llvm-project/pull/78658
More information about the llvm-commits
mailing list