[all-commits] [llvm/llvm-project] c19315: [lld/mac] Don't warn on both --icf=all and -no_ded...

Nico Weber via All-commits all-commits at lists.llvm.org
Wed Sep 29 05:25:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c19315ef60828b96ce77ab8adca58b3c529c8b70
      https://github.com/llvm/llvm-project/commit/c19315ef60828b96ce77ab8adca58b3c529c8b70
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/test/MachO/icf-options.s

  Log Message:
  -----------
  [lld/mac] Don't warn on both --icf=all and -no_deduplicate

Instead, just make the later flag win, like usual.
Implement this by making -no_deduplicate an actual alias for --icf=none
at the Options.td level.

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




More information about the All-commits mailing list