File tree 2 files changed +7
-9
lines changed
lib/Target/Mips/MCTargetDesc
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,10 @@ class MCStreamer {
255
255
// / discussion for future inclusion.
256
256
bool AllowAutoPadding = false ;
257
257
258
+ // / This is called by popSection and switchSection, if the current
259
+ // / section changes.
260
+ virtual void changeSection (MCSection *, uint32_t );
261
+
258
262
protected:
259
263
MCFragment *CurFrag = nullptr ;
260
264
@@ -410,12 +414,6 @@ class MCStreamer {
410
414
return SymbolOrdering.lookup (Sym);
411
415
}
412
416
413
- // / Update streamer for a new active section.
414
- // /
415
- // / This is called by popSection and switchSection, if the current
416
- // / section changes.
417
- virtual void changeSection (MCSection *, uint32_t );
418
-
419
417
// / Save the current and previous section on the section stack.
420
418
void pushSection () {
421
419
SectionStack.push_back (
Original file line number Diff line number Diff line change @@ -894,11 +894,11 @@ void MipsTargetELFStreamer::finish() {
894
894
895
895
// .bss, .text and .data are always at least 16-byte aligned.
896
896
MCSection &TextSection = *OFI.getTextSection ();
897
- S.changeSection (&TextSection);
897
+ S.switchSection (&TextSection);
898
898
MCSection &DataSection = *OFI.getDataSection ();
899
- S.changeSection (&DataSection);
899
+ S.switchSection (&DataSection);
900
900
MCSection &BSSSection = *OFI.getBSSSection ();
901
- S.changeSection (&BSSSection);
901
+ S.switchSection (&BSSSection);
902
902
903
903
TextSection.ensureMinAlignment (Align (16 ));
904
904
DataSection.ensureMinAlignment (Align (16 ));
You can’t perform that action at this time.
0 commit comments