[all-commits] [llvm/llvm-project] 727362: [MC][ELF] Rename MC related "Associated" to "Linke...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Feb 6 11:31:12 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 727362e87bb3e35e812a44f41d08791683a04f5d
      https://github.com/llvm/llvm-project/commit/727362e87bb3e35e812a44f41d08791683a04f5d
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-02-06 (Thu, 06 Feb 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCSectionELF.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/MC/MCSectionELF.cpp
    R llvm/test/MC/ELF/metadata-declaration-errors.s
    A llvm/test/MC/ELF/section-linkorder-error.s
    R llvm/test/MC/ELF/section-metadata-err1.s
    R llvm/test/MC/ELF/section-metadata-err2.s
    R llvm/test/MC/ELF/section-metadata-err3.s
    R llvm/test/MC/ELF/section-metadata-err4.s

  Log Message:
  -----------
  [MC][ELF] Rename MC related "Associated" to "LinkedToSym"

"linked-to section" is used by the ELF spec. By analogy, "linked-to
symbol" is a good name for the signature symbol.  The word "linked-to"
implies a directed edge and makes it clear its relation with "sh_link",
while one can argue that "associated" means an undirected edge.

Also, combine tests and add precise SMLoc to improve diagnostics.

Reviewed By: eugenis, grimar, jhenderson

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




More information about the All-commits mailing list