[llvm] [DTLTO] [LLVM] Initial DTLTO cache implementation (PR #156433)
Katya Romanova via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 7 02:20:09 PST 2025
================
@@ -2512,15 +2560,32 @@ class OutOfProcessThinBackend : public CGThinBackend {
BCError + "cannot open native object file: " +
Job.NativeObjectPath + ": " + EC.message(),
inconvertibleErrorCode());
- auto StreamOrErr = AddStream(Job.Task, Job.ModuleID);
- if (Error Err = StreamOrErr.takeError())
- report_fatal_error(std::move(Err));
- auto &Stream = *StreamOrErr->get();
- *Stream.OS << ObjFileMbOrErr->get()->getMemBufferRef().getBuffer();
- if (Error Err = Stream.commit())
- report_fatal_error(std::move(Err));
- }
+ MemoryBufferRef ObjFileMbRef = ObjFileMbOrErr->get()->getMemBufferRef();
+ if (Cache.isValid() && Job.CacheAddStream) {
----------------
romanova-ekaterina wrote:
Done.
https://github.com/llvm/llvm-project/pull/156433
More information about the llvm-commits
mailing list