[lld] [Coverage][WebAssembly] Discard InstrProf sections if object not live (PR #172023)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 13 10:35:00 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)
----------------
Spxg wrote:
yeah... many custom sections will be retained, even if they are non-live objects.
https://github.com/llvm/llvm-project/pull/172023
More information about the llvm-commits
mailing list