diff options
author | Fangrui Song <maskray@google.com> | 2020-02-05 11:24:15 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-02-06 11:31:04 -0800 |
commit | 727362e87bb3e35e812a44f41d08791683a04f5d (patch) | |
tree | c72c249ed5350152954b6beba1ac17002e7ef326 /llvm/lib/MC/MCSectionELF.cpp | |
parent | 208470dd5d0a46bc3c24b66489b687eda4954262 (diff) | |
download | llvm-727362e87bb3e35e812a44f41d08791683a04f5d.zip llvm-727362e87bb3e35e812a44f41d08791683a04f5d.tar.gz llvm-727362e87bb3e35e812a44f41d08791683a04f5d.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index efe504b..6950cab 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -172,9 +172,9 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T, } if (Flags & ELF::SHF_LINK_ORDER) { - assert(AssociatedSymbol); + assert(LinkedToSym); OS << ","; - printName(OS, AssociatedSymbol->getName()); + printName(OS, LinkedToSym->getName()); } if (isUnique()) |