[all-commits] [llvm/llvm-project] d37826: [lld-macho] Make `--icf=safe` work with LTO

Jez Ng via All-commits all-commits at lists.llvm.org
Sun Jun 12 14:33:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d378268ead93c85803c270277f0243737b536ae7
      https://github.com/llvm/llvm-project/commit/d378268ead93c85803c270277f0243737b536ae7
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-06-12 (Sun, 12 Jun 2022)

  Changed paths:
    M lld/MachO/LTO.cpp
    A lld/test/MachO/icf-safe.ll
    R lld/test/MachO/icf-safe.s

  Log Message:
  -----------
  [lld-macho] Make `--icf=safe` work with LTO

Just matter of enabling the config option.

(Also changed the platform of the input test file to macOS, since that's
the default that we specify in the `%lld` substitution. The conflict was
causing errors when linking with LTO.)

Reviewed By: #lld-macho, thakis

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




More information about the All-commits mailing list