aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-07-20 16:28:16 -0700
committerFangrui Song <i@maskray.me>2025-07-20 16:28:16 -0700
commitbdbc0987ca2f2b60de30481b64a33e3e5c6192df (patch)
tree879eb995057a1eb587002b9e4ded0ae57d9c1423 /llvm/lib/MC/MCObjectStreamer.cpp
parentb21f14e084125dd6df958544c8bbcd170619a20e (diff)
downloadllvm-bdbc0987ca2f2b60de30481b64a33e3e5c6192df.zip
llvm-bdbc0987ca2f2b60de30481b64a33e3e5c6192df.tar.gz
llvm-bdbc0987ca2f2b60de30481b64a33e3e5c6192df.tar.bz2
MCObjectStreamer: Remove changeSectionImpl
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 4c99010..bf6ebb4 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -224,11 +224,6 @@ void MCObjectStreamer::emitWeakReference(MCSymbol *Alias,
}
void MCObjectStreamer::changeSection(MCSection *Section, uint32_t Subsection) {
- changeSectionImpl(Section, Subsection);
-}
-
-bool MCObjectStreamer::changeSectionImpl(MCSection *Section,
- uint32_t Subsection) {
assert(Section && "Cannot switch to a null section!");
getContext().clearDwarfLocSeen();
@@ -247,7 +242,7 @@ bool MCObjectStreamer::changeSectionImpl(MCSection *Section,
Section->CurFragList = &Subsections[I].second;
CurFrag = Section->CurFragList->Tail;
- return getAssembler().registerSection(*Section);
+ getAssembler().registerSection(*Section);
}
void MCObjectStreamer::switchSectionNoPrint(MCSection *Section) {