[all-commits] [llvm/llvm-project] e5347f: [lld-macho] Allow deduplicate-literals to be overr...

Vincent Lee via All-commits all-commits at lists.llvm.org
Tue Jan 18 15:43:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5347f2556cbdd13235ebf5b4994ac6f5276a0dd
      https://github.com/llvm/llvm-project/commit/e5347f2556cbdd13235ebf5b4994ac6f5276a0dd
  Author: Vincent Lee <leevince at fb.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/ld64-vs-lld.rst
    M lld/test/MachO/literal-dedup.s
    M lld/test/MachO/silent-ignore.s

  Log Message:
  -----------
  [lld-macho] Allow deduplicate-literals to be overridden

It's still uncertain but whether we want to have `deduplicate-literals` be the
default flag for LLD out of the box or not. If `deduplicate-literals` is the default
behavior, then we will need a way override it and not deduplicate. Luckily, we
have `no_deduplicate` to fill this gap. For now, I've set the default to be false
which aligns with the existing behavior. That can only always be changed after
discussions on D117250.

Reviewed By: #lld-macho, int3

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




More information about the All-commits mailing list