[lld] [LLD][COFF] Move Archive::create call to LinkerDriver::addBuffer (NFC) (PR #194346)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 06:03:06 PDT 2026
mstorsjo wrote:
> > I think this needs at least some explanations to why it is desireable to do this.
>
> It is a dependency of #194349, where it allows `Archive::create()` to make decisions based on the archive type.
>
> I also have another use for this in progress: changes that introduce a `-wholeArchive` marker in the archives themselves. Those changes require much more context. I split this out based on your request. If you would prefer to wait for the rest of the `-wholeArchive` work, that's fine too, although that would also block #194349.
No, it's totally fine to go ahead with this on its own, #194349 (which I haven't yet looked at) on its own is quite enough motivation for it. Just mention e.g. "this allows an upcoming change to have `Archive::create()` to make decisions based on the archive type" in the PR description, or something along those lines.
https://github.com/llvm/llvm-project/pull/194346
More information about the llvm-commits
mailing list