[lld] ELF: Store EhInputSection relocations to simplify code. NFC (PR #161041)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 03:41:29 PDT 2025
================
@@ -141,8 +155,9 @@ void MarkLive<ELFT, TrackWhyLive>::resolveReloc(InputSectionBase &sec,
// associated text section is live, the LSDA will be retained due to section
// group/SHF_LINK_ORDER rules (b) if the associated text section should be
// discarded, marking the LSDA will unnecessarily retain the text section.
- if (!(fromFDE && ((relSec->flags & (SHF_EXECINSTR | SHF_LINK_ORDER)) ||
- relSec->nextInSectionGroup))) {
+ if (!(std::is_same_v<RelTy, Relocation> && fromFDE &&
----------------
smithp35 wrote:
Could we put fromFDE before the std::is_same_v as it matches the comment above?
https://github.com/llvm/llvm-project/pull/161041
More information about the llvm-commits
mailing list