[lld] [LLD][COFF] Handle --start-lib/--end-lib group in the same way as other archives (PR #136496)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 16:08:55 PDT 2025
================
@@ -132,16 +139,35 @@ class ArchiveFile : public InputFile {
llvm::DenseSet<uint64_t> seen;
};
+// A synthetic -start-lib/-end-lib archive.
+class CmdLineArchive : public InputFile {
+public:
+ explicit CmdLineArchive(SymbolTable &s, MemoryBufferRef m, StringRef startLib,
+ StringRef endLib)
----------------
cjacek wrote:
Since the caller always passes an empty memory buffer, we might as well drop the `m` argument and hardcode it here.
https://github.com/llvm/llvm-project/pull/136496
More information about the llvm-commits
mailing list