Skip to content

Commit fc756dd

Browse files
author
git apple-llvm automerger
committed
Merge commit '0c454df448c1' from llvm.org/main into next
2 parents 77a7ac0 + cbbe233 commit fc756dd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

llvm/include/llvm/MC/MCStreamer.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ class MCStreamer {
258258
/// Generate debug info that is Cas Friendly
259259
bool GenerateCasFriendlyDebugInfo = false;
260260

261+
/// This is called by popSection and switchSection, if the current
262+
/// section changes.
263+
virtual void changeSection(MCSection *, uint32_t);
264+
261265
protected:
262266
MCFragment *CurFrag = nullptr;
263267

@@ -420,12 +424,6 @@ class MCStreamer {
420424
return SymbolOrdering.lookup(Sym);
421425
}
422426

423-
/// Update streamer for a new active section.
424-
///
425-
/// This is called by popSection and switchSection, if the current
426-
/// section changes.
427-
virtual void changeSection(MCSection *, uint32_t);
428-
429427
/// Save the current and previous section on the section stack.
430428
void pushSection() {
431429
SectionStack.push_back(

llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,11 +894,11 @@ void MipsTargetELFStreamer::finish() {
894894

895895
// .bss, .text and .data are always at least 16-byte aligned.
896896
MCSection &TextSection = *OFI.getTextSection();
897-
S.changeSection(&TextSection);
897+
S.switchSection(&TextSection);
898898
MCSection &DataSection = *OFI.getDataSection();
899-
S.changeSection(&DataSection);
899+
S.switchSection(&DataSection);
900900
MCSection &BSSSection = *OFI.getBSSSection();
901-
S.changeSection(&BSSSection);
901+
S.switchSection(&BSSSection);
902902

903903
TextSection.ensureMinAlignment(Align(16));
904904
DataSection.ensureMinAlignment(Align(16));

0 commit comments

Comments
 (0)