[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


================
@@ -367,13 +367,16 @@ LLVM_ABI ThinBackend createInProcessThinBackend(
 /// backend compilations.
 /// SaveTemps is a debugging tool that prevents temporary files created by this
 /// backend from being cleaned up.
+/// AddBuffer is optional. If provided, it is used to add the externally
----------------
teresajohnson wrote:

Why make it optional? The only other caller is in llvm-lto2 and I suggest passing the AddBuffer it is creating for caching to this call from there too, which also gives the benefit of more testing.

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


More information about the llvm-commits mailing list