[lld] [llvm] [DTLTO] support distributing bitcode from FatLTO objects (PR #176928)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 09:51:58 PST 2026


================
@@ -205,10 +206,14 @@ class InputFile {
   LLVM_ABI BitcodeModule &getPrimaryBitcodeModule();
   // Returns the memory buffer reference for this input file.
   MemoryBufferRef getFileBuffer() const { return MbRef; }
-  // Returns true if this input file is a member of an archive.
-  bool isMemberOfArchive() const { return IsMemberOfArchive; }
-  // Mark this input file as a member of archive.
-  void memberOfArchive(bool MA) { IsMemberOfArchive = MA; }
+  // Returns true if this input should be materialized to disk for distribution.
+  bool shouldMaterialize() const { return ShouldMaterialize; }
----------------
teresajohnson wrote:

I like that explanation. I'd rather have it be a little verbose but clear. Probably put it at the definition of the member, and reference it in the comment above the setter/getter?

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


More information about the llvm-commits mailing list