[lld] [llvm] [DTLTO] Improve performance of adding files to the link (PR #186366)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 08:17:59 PDT 2026
================
@@ -2742,7 +2748,11 @@ class OutOfProcessThinBackend : public CGThinBackend {
*(CacheStream.OS) << ObjFileMbRef.getBuffer();
if (Error Err = CacheStream.commit())
return Err;
+ } else if (AddBuffer) {
+ AddBuffer(Job.Task, Job.ModuleID, std::move(*ObjFileMbOrErr));
} else {
+ MemoryBufferRef ObjFileMbRef =
----------------
teresajohnson wrote:
If AddBuffer is made mandatory, can this fallback be removed?
https://github.com/llvm/llvm-project/pull/186366
More information about the llvm-commits
mailing list