[all-commits] [llvm/llvm-project] 465204: [lld-macho][NFC] define more strings in section_na...

Greg McGary via All-commits all-commits at lists.llvm.org
Tue Apr 27 17:49:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 465204d63a71402ac412e444ba03bbdbbd17c667
      https://github.com/llvm/llvm-project/commit/465204d63a71402ac412e444ba03bbdbbd17c667
  Author: Greg McGary <gkm at fb.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M lld/MachO/Dwarf.cpp
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    M lld/MachO/ObjC.cpp
    M lld/MachO/OutputSegment.h
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/Writer.cpp

  Log Message:
  -----------
  [lld-macho][NFC] define more strings in section_names:: and segment_names::

As preparation for a subsequent diff that implements builtin section renaming, define more `constexpr` strings in namespaces `lld::macho::segment_names` and `lld::macho::section_names`, and use them to replace string literals.

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




More information about the All-commits mailing list