[lld] [llvm] [DTLTO] support distributing bitcode from FatLTO objects (PR #176928)
Ben Dunbobbin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 02:32:05 PST 2026
================
@@ -206,10 +210,16 @@ 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 should be materialized to disk for distribution.
- bool shouldMaterialize() const { return ShouldMaterialize; }
- // Mark whether this input should be materialized to disk for distribution.
- void setShouldMaterialize(bool SM) { ShouldMaterialize = SM; }
+ // Returns true if this input should be serialized to disk for distribution.
+ // See the comment on SerializeForDistribution for details.
+ bool shouldSerializeForDistribution() const {
----------------
bd1976bris wrote:
"Should" doesn't feel definite enough. I considered "needs" or "must" but perhaps just `<get|set>SerializeForDistribution()` is better. "get" + "set" for consistency with existing member functions?
https://github.com/llvm/llvm-project/pull/176928
More information about the llvm-commits
mailing list