[lld] [lld-macho] Support archives without index (PR #132942)

Leonard Grey via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 15:00:02 PDT 2025


================
@@ -362,9 +360,11 @@ static InputFile *addFile(StringRef path, LoadType loadType,
                 ": Archive::children failed: " + toString(std::move(e)));
       }
     } else if (isCommandLineLoad && config->forceLoadObjC) {
-      for (const object::Archive::Symbol &sym : file->getArchive().symbols())
-        if (sym.getName().starts_with(objc::symbol_names::klass))
-          file->fetch(sym);
+      if (file->getArchive().getNumberOfSymbols() > 0) {
----------------
speednoisemovement wrote:

Done

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


More information about the llvm-commits mailing list