[all-commits] [llvm/llvm-project] a53401: [lld-macho][NFC] Refactor ObjCSelRefsSection out o...

alx32 via All-commits all-commits at lists.llvm.org
Sun Mar 10 13:22:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a53401e9dff6168b872eeb61f62b0f60b185328a
      https://github.com/llvm/llvm-project/commit/a53401e9dff6168b872eeb61f62b0f60b185328a
  Author: alx32 <103613512+alx32 at users.noreply.github.com>
  Date:   2024-03-10 (Sun, 10 Mar 2024)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/SyntheticSections.h
    M lld/MachO/Writer.cpp

  Log Message:
  -----------
  [lld-macho][NFC] Refactor ObjCSelRefsSection out of ObjCStubsSection (#83878)

Currently ObjCStubsSection is handling both the logic for the
"__objc_stubs" section, as well as the logic for the "__objc_selrefs"
section.
While this is OK for now, it will be an issue for other features that
want to interact with the "__objc_selrefs" section, such as upcoming
relative method lists feature - which will also want to create /
reference entries in the "__objc_selrefs" section.
In this PR we split the logic relating to handling the "__objc_selrefs"
section into a new SyntheticSection (ObjCSelRefsSection). Non-functional
change - neither the behavior nor implementation changes, the interface
is just made more friendly to not have "__objc_selrefs" so bound to
"__objc_stubs".

---------

Co-authored-by: Alex B <alexborcan at meta.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list