[all-commits] [llvm/llvm-project] 8aa17d: [lld-macho] Move ICF members from InputSection to ...

Jez Ng via All-commits all-commits at lists.llvm.org
Thu Jun 24 19:23:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8aa17d1eaeb48f8782661680d69c28f2458959ad
      https://github.com/llvm/llvm-project/commit/8aa17d1eaeb48f8782661680d69c28f2458959ad
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M lld/MachO/ICF.cpp
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    M lld/MachO/UnwindInfoSection.cpp
    M lld/MachO/Writer.cpp

  Log Message:
  -----------
  [lld-macho] Move ICF members from InputSection to ConcatInputSection

`icfEqClass` only makes sense on ConcatInputSections since (in contrast
to literal sections) they are deduplicated as an atomic unit.

Similarly, `hasPersonality` and `replacement` don't make sense on
literal sections.

This mirrors LLD-ELF, which stores `icfEqClass` only on non-mergeable
sections.

Reviewed By: #lld-macho, gkm

Differential Revision: https://reviews.llvm.org/D104670




More information about the All-commits mailing list