[lld] [llvm] [DTLTO] Overlap temporary file removal (PR #209423)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 08:21:55 PDT 2026


================
@@ -439,6 +438,10 @@ class LLVM_ABI LTO {
   /// Cache) for each task identifier.
   virtual Error run(AddStreamFn AddStream, FileCache Cache = {});
 
+  /// Performs any cleanup that should happen after run() returns. Most LTO
----------------
teresajohnson wrote:

Maybe be explicit about how this needs to be invoked before what else happens (like time tracing)? Also what in needs to happen after. I.e. it is not called immediately after run() in lld. Hmm, this isn't really performing cleanup, it is just waiting for any necessary cleanup to complete. So maybe change the name of this method and lld's cleanupLTO to reflect this.

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


More information about the llvm-commits mailing list