[llvm] [DWARFVerifier] Allow overlapping ranges for ICF-merged functions (PR #117952)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 11:19:59 PST 2024
dwblaikie wrote:
> > But lld doesn't produce these overlapping ranges, when it ICFs, it resolves only one duplicate to point to the final code, and the rest get zero'd/tombstoned, yeah?
>
> This is what happens by default, yes - but the [recently added](https://github.com/llvm/llvm-project/pull/93137) `--keep-icf-stabs` lld flag does enable exporting of duplicate entries in the final binary and from there `dsymutil` picks them up and generates dSYM's with overlapping ranges.
Ah, so you're specifically seeking out this behavior, and looking to support it more.
> > So what situation are you in that you are getting these duplicates?
>
> We're only being blocked by `lld --keep-icf-stabs` + `dsymutil` => generates dSYM where `llvm-dwarfdump --verify` complains about duplicate entries. The attribute is also only for this scenario.
Fair enough.
https://github.com/llvm/llvm-project/pull/117952
More information about the llvm-commits
mailing list