[all-commits] [llvm/llvm-project] 860e86: [lld/mac] Simplify encodeDylibOrdinal() a bit

Nico Weber via All-commits all-commits at lists.llvm.org
Sun Feb 28 06:17:10 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 860e862f34ce17f6a5ddeee472fe4e305370da18
      https://github.com/llvm/llvm-project/commit/860e862f34ce17f6a5ddeee472fe4e305370da18
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-02-28 (Sun, 28 Feb 2021)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp

  Log Message:
  -----------
  [lld/mac] Simplify encodeDylibOrdinal() a bit

Only one of the two callers used the lastBinding parameter, so
do that work at that one call site. Extract a ordinalForDylibSymbol()
helper to make this tidy.

No behavior change.

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




More information about the All-commits mailing list