[ELF] Simplify EhInputSection::split. NFC
authorFangrui Song <i@maskray.me>
Sun, 31 Jul 2022 23:59:57 +0000 (16:59 -0700)
committerFangrui Song <i@maskray.me>
Sun, 31 Jul 2022 23:59:57 +0000 (16:59 -0700)
commitaf1328ef452b9eaa4e9f0bc115aeda8f40c4bbff
tree8057f1d38cd54ee00131d3ad22b3dff2688f4d6c
parent3e9adff456213951376f6fff9349ffe71136f2b5
[ELF] Simplify EhInputSection::split. NFC

* Inline getReloc
* Fold the UINT32_MAX length check into the section size check.
  This transformation is valid because we don't support .eh_frame input sections
  larger than 32-bit (unrealistic even for large code models).
lld/ELF/InputSection.cpp