[all-commits] [llvm/llvm-project] 365be7: [MC][ELF] Use SHF_SUNW_NODISCARD instead of SHF_GN...

rorth via All-commits all-commits at lists.llvm.org
Wed Feb 23 06:43:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 365be7ac72a3cde3e9c138b4a8dba0af57e16341
      https://github.com/llvm/llvm-project/commit/365be7ac72a3cde3e9c138b4a8dba0af57e16341
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/MC/MCSectionELF.cpp
    M llvm/test/CodeGen/X86/elf-retain.ll
    M llvm/test/MC/ELF/section-gnu.s

  Log Message:
  -----------
  [MC][ELF] Use SHF_SUNW_NODISCARD instead of SHF_GNU_RETAIN on Solaris

As requested in D107955 <https://reviews.llvm.org/D107955>, this patch
splits off the `MC` and `CodeGen` parts and adds a testcase.

Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and
`x86_64-pc-linux-gnu`.

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




More information about the All-commits mailing list