[lld] [Coverage][WebAssembly] Discard InstrProf sections if object not live (PR #172023)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 13 09:47:06 PST 2025
================
@@ -181,7 +192,7 @@ void markLive() {
if (!c->live)
message("removing unused section " + toString(c));
for (InputChunk *c : obj->segments)
- if (!c->live)
+ if (!c->live && !c->isInstrProfSegment)
----------------
sbc100 wrote:
Interesting.. I wonder why we would ever retain anything from a non-live object.
https://github.com/llvm/llvm-project/pull/172023
More information about the llvm-commits
mailing list