[lld] [llvm] [DTLTO][ELF][COFF] Add archive support for DTLTO. (PR #157043)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 07:10:09 PST 2025
================
@@ -73,12 +73,10 @@ SmallString<64> computeThinArchiveMemberPath(const StringRef ArchivePath,
// This function uses a cache to avoid repeatedly reading the same file.
// It reads only the header portion (magic bytes) of the file to identify
// the archive type.
-Expected<bool> isThinArchive(const StringRef ArchivePath) {
- static StringMap<bool> ArchiveFiles;
-
+Expected<bool> isThinArchive(lto::DTLTO *Dtlto, const StringRef ArchivePath) {
----------------
teresajohnson wrote:
Just make this a private member of the DTLTO class so that you don't have to pass in the object.
https://github.com/llvm/llvm-project/pull/157043
More information about the llvm-commits
mailing list