Skip to content

Commit e7622ab

Browse files
committed
[MC] Remove unused MCObjectStreamer::CurSubsectionIdx. NFC
1 parent 6ec1ddf commit e7622ab

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/include/llvm/MC/MCObjectStreamer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class MCObjectStreamer : public MCStreamer {
4343
std::unique_ptr<MCAssembler> Assembler;
4444
bool EmitEHFrame;
4545
bool EmitDebugFrame;
46-
unsigned CurSubsectionIdx = 0;
4746
struct PendingMCFixup {
4847
const MCSymbol *Sym;
4948
MCFixup Fixup;

llvm/lib/MC/MCObjectStreamer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ bool MCObjectStreamer::changeSectionImpl(MCSection *Section,
295295
getContext().clearDwarfLocSeen();
296296

297297
bool Created = getAssembler().registerSection(*Section);
298-
CurSubsectionIdx = Subsection;
299-
Section->switchSubsection(CurSubsectionIdx);
298+
Section->switchSubsection(Subsection);
300299
return Created;
301300
}
302301

0 commit comments

Comments
 (0)