[lld] [lld-macho] Save all thin archive members in repro tarball (PR #97169)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 11:52:41 PDT 2024


================
@@ -349,7 +366,18 @@ static InputFile *addFile(StringRef path, LoadType loadType,
         Error e = Error::success();
         for (const object::Archive::Child &c : file->getArchive().children(e)) {
           Expected<MemoryBufferRef> mb = c.getMemoryBufferRef();
-          if (!mb || !hasObjCSection(*mb))
+          if (!mb) {
+            // For a long time, only referenced object files were included in
----------------
nico wrote:

nit "included in from"

https://github.com/llvm/llvm-project/pull/97169


More information about the llvm-commits mailing list