[all-commits] [llvm/llvm-project] 7051ae: [ELF] Rename BaseCommand to SectionCommand. NFC

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Nov 25 20:24:35 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7051aeef7a1ef609aaeea0bf87d90a2ec6340a37
      https://github.com/llvm/llvm-project/commit/7051aeef7a1ef609aaeea0bf87d90a2ec6340a37
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-11-25 (Thu, 25 Nov 2021)

  Changed paths:
    M lld/ELF/AArch64ErrataFix.cpp
    M lld/ELF/ARMErrataFix.cpp
    M lld/ELF/Driver.cpp
    M lld/ELF/ICF.cpp
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/ELF/MapFile.cpp
    M lld/ELF/OutputSections.cpp
    M lld/ELF/OutputSections.h
    M lld/ELF/Relocations.cpp
    M lld/ELF/ScriptParser.cpp
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Rename BaseCommand to SectionCommand. NFC

BaseCommand was picked when PHDRS/INSERT/etc were not implemented. Rename it to
SectionCommand to match `sectionCommands` and make it clear that the commands
are used in SECTIONS (except a special case for SymbolAssignment).

Also, improve naming of some BaseCommand variables (base -> cmd).




More information about the All-commits mailing list