[lld] [llvm] [DTLTO][ELF][COFF] Add archive support for DTLTO. (PR #157043)
Konstantin Belochapka via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 9 23:03:12 PST 2025
================
@@ -731,13 +734,18 @@ static void writeToResolutionFile(raw_ostream &OS, InputFile *Input,
assert(ResI == Res.end());
}
-Error LTO::add(std::unique_ptr<InputFile> Input,
+Error LTO::add(std::unique_ptr<InputFile> InputPtr,
ArrayRef<SymbolResolution> Res) {
- llvm::TimeTraceScope timeScope("LTO add input", Input->getName());
+ llvm::TimeTraceScope timeScope("LTO add input", InputPtr->getName());
assert(!CalledGetMaxTasks);
+ Expected<InputFile *> InputOrErr = dtlto::addInput(this, std::move(InputPtr));
----------------
kbelochapka wrote:
@teresajohnson, This is intentional, delaying the destruction of the 'InputFile' object until the 'LTO' object is destroyed is harmless in all cases, whether DTLTO is used or not.
https://github.com/llvm/llvm-project/pull/157043
More information about the llvm-commits
mailing list