[MC][ELF] Rename MC related "Associated" to "LinkedToSym"
authorFangrui Song <maskray@google.com>
Wed, 5 Feb 2020 19:24:15 +0000 (11:24 -0800)
committerFangrui Song <maskray@google.com>
Thu, 6 Feb 2020 19:31:04 +0000 (11:31 -0800)
commit727362e87bb3e35e812a44f41d08791683a04f5d
treec72c249ed5350152954b6beba1ac17002e7ef326
parent208470dd5d0a46bc3c24b66489b687eda4954262
[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
14 files changed:
llvm/include/llvm/MC/MCContext.h
llvm/include/llvm/MC/MCSectionELF.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/ELFObjectWriter.cpp
llvm/lib/MC/MCContext.cpp
llvm/lib/MC/MCParser/ELFAsmParser.cpp
llvm/lib/MC/MCSectionELF.cpp
llvm/test/MC/ELF/metadata-declaration-errors.s [deleted file]
llvm/test/MC/ELF/section-linkorder-error.s [new file with mode: 0644]
llvm/test/MC/ELF/section-metadata-err1.s [deleted file]
llvm/test/MC/ELF/section-metadata-err2.s [deleted file]
llvm/test/MC/ELF/section-metadata-err3.s [deleted file]
llvm/test/MC/ELF/section-metadata-err4.s [deleted file]