diff options
Diffstat (limited to 'llvm/lib/MC/MCSectionWasm.cpp')
| -rw-r--r-- | llvm/lib/MC/MCSectionWasm.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/llvm/lib/MC/MCSectionWasm.cpp b/llvm/lib/MC/MCSectionWasm.cpp index e3761820bb4c..e25af1c3133f 100644 --- a/llvm/lib/MC/MCSectionWasm.cpp +++ b/llvm/lib/MC/MCSectionWasm.cpp @@ -46,14 +46,12 @@ static void printName(raw_ostream &OS, StringRef Name) { void MCSectionWasm::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, - const MCExpr *Subsection) const { + uint32_t Subsection) const { if (shouldOmitSectionDirective(getName(), MAI)) { OS << '\t' << getName(); - if (Subsection) { - OS << '\t'; - Subsection->print(OS, &MAI); - } + if (Subsection) + OS << '\t' << Subsection; OS << '\n'; return; } @@ -96,13 +94,8 @@ void MCSectionWasm::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, OS << '\n'; - if (Subsection) { - OS << "\t.subsection\t"; - Subsection->print(OS, &MAI); - OS << '\n'; - } + if (Subsection) + OS << "\t.subsection\t" << Subsection << '\n'; } bool MCSectionWasm::useCodeAlign() const { return false; } - -bool MCSectionWasm::isVirtualSection() const { return false; } |
