[lld] [Coverage][WebAssembly] Discard InstrProf sections if object not live (PR #172023)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 18:59:48 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, `__llvm_prf_*` have the retain flag, the PR has been updated, the current approach is to remove `__llvm_covmap` and `__llvm_covfun` if the object is not live.
https://github.com/llvm/llvm-project/pull/172023
More information about the llvm-commits
mailing list