[all-commits] [llvm/llvm-project] 6b6d1a: [lld-macho] Move adding bindings for stub targets ...

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Thu Aug 25 08:38:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b6d1abb102161de4c4dacb3df93b73f318fcf79
      https://github.com/llvm/llvm-project/commit/6b6d1abb102161de4c4dacb3df93b73f318fcf79
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

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

  Log Message:
  -----------
  [lld-macho] Move adding bindings for stub targets out of Writer (NFC)

We now re-use the existing needsBinding() helper to determine if a
branch has to go through a stub. The logic for determining which type of
binding is needed is moved inside StubsSection::addEntry().

This is an NFC refactor that simplifies my diff that adds support for
chained fixups.

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




More information about the All-commits mailing list