diff options
author | Fangrui Song <maskray@google.com> | 2020-04-15 15:49:05 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-04-15 18:35:27 -0700 |
commit | 90a63f6d2d6b8144f0c7cd99232fc27ed10c41fe (patch) | |
tree | 81d33df0132ca97361d5631987aaa0a80446434f /llvm/lib/MC/MCSectionELF.cpp | |
parent | 3ca54f45953e4217ad764c68ee2abcbc3eead1e8 (diff) | |
download | llvm-90a63f6d2d6b8144f0c7cd99232fc27ed10c41fe.zip llvm-90a63f6d2d6b8144f0c7cd99232fc27ed10c41fe.tar.gz llvm-90a63f6d2d6b8144f0c7cd99232fc27ed10c41fe.tar.bz2 |
[MC] Replace MCSection*::getName() with MCSection::getName(). NFC
I plan to use MCSection::getName() in D78138. Having the function in the base class is also convenient for debugging.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D78251
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index b6220fc..ba06737 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -53,7 +53,7 @@ static void printName(raw_ostream &OS, StringRef Name) { void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, const MCExpr *Subsection) const { - if (ShouldOmitSectionDirective(SectionName, MAI)) { + if (ShouldOmitSectionDirective(getName(), MAI)) { OS << '\t' << getName(); if (Subsection) { OS << '\t'; |