aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-06-10 22:50:55 -0700
committerFangrui Song <i@maskray.me>2022-06-10 22:50:55 -0700
commitadf4142f76831848732861769a807d1047102c53 (patch)
tree850eb26fd50c8e9803c225179b0bc1383940c6c6 /llvm/lib/MC/MCStreamer.cpp
parent2e603c67c204b6bc9d96bf090ef4fd3a5b04aa51 (diff)
downloadllvm-adf4142f76831848732861769a807d1047102c53.zip
llvm-adf4142f76831848732861769a807d1047102c53.tar.gz
llvm-adf4142f76831848732861769a807d1047102c53.tar.bz2
[MC] De-capitalize SwitchSection. NFC
Add SwitchSection to return switchSection. The API will be removed soon.
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 64b2d26..88237a0 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -408,7 +408,7 @@ void MCStreamer::emitEHSymAttributes(const MCSymbol *Symbol,
}
void MCStreamer::initSections(bool NoExecStack, const MCSubtargetInfo &STI) {
- SwitchSection(getContext().getObjectFileInfo()->getTextSection());
+ switchSection(getContext().getObjectFileInfo()->getTextSection());
}
void MCStreamer::assignFragment(MCSymbol *Symbol, MCFragment *Fragment) {
@@ -739,7 +739,7 @@ void MCStreamer::emitWinCFIEndProc(SMLoc Loc) {
for (size_t I = CurrentProcWinFrameInfoStartIndex, E = WinFrameInfos.size();
I != E; ++I)
emitWindowsUnwindTables(WinFrameInfos[I].get());
- SwitchSection(CurFrame->TextSection);
+ switchSection(CurFrame->TextSection);
}
void MCStreamer::emitWinCFIFuncletOrFuncEnd(SMLoc Loc) {
@@ -1222,7 +1222,7 @@ void MCStreamer::emitBundleLock(bool AlignToEnd) {}
void MCStreamer::finishImpl() {}
void MCStreamer::emitBundleUnlock() {}
-void MCStreamer::SwitchSection(MCSection *Section, const MCExpr *Subsection) {
+void MCStreamer::switchSection(MCSection *Section, const MCExpr *Subsection) {
assert(Section && "Cannot switch to a null section!");
MCSectionSubPair curSection = SectionStack.back().first;
SectionStack.back().second = curSection;
@@ -1243,7 +1243,7 @@ MCSymbol *MCStreamer::endSection(MCSection *Section) {
if (Sym->isInSection())
return Sym;
- SwitchSection(Section);
+ switchSection(Section);
emitLabel(Sym);
return Sym;
}