Skip to content

Commit 9247d28

Browse files
MaskRaygithub-actions[bot]
authored andcommitted
Automerge: MC: Remove unneeded parameter MCAsmBackend *. NFC
2 parents c014f40 + e04c01b commit 9247d28

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

llvm/include/llvm/MC/MCObjectStreamer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class MCObjectStreamer : public MCStreamer {
7777
/// Object streamers require the integrated assembler.
7878
bool isIntegratedAssemblerRequired() const override { return true; }
7979

80-
void emitFrames(MCAsmBackend *MAB);
80+
void emitFrames();
8181
MCSymbol *emitCFILabel() override;
8282
void emitCFISections(bool EH, bool Debug, bool SFrame) override;
8383

llvm/lib/MC/MCELFStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ void MCELFStreamer::finishImpl() {
364364
}
365365

366366
finalizeCGProfile();
367-
emitFrames(nullptr);
367+
emitFrames();
368368

369369
this->MCObjectStreamer::finishImpl();
370370
}

llvm/lib/MC/MCMachOStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void MCMachOStreamer::emitTBSSSymbol(MCSection *Section, MCSymbol *Symbol,
422422
}
423423

424424
void MCMachOStreamer::finishImpl() {
425-
emitFrames(&getAssembler().getBackend());
425+
emitFrames();
426426

427427
// We have to set the fragment atom associations so we can relax properly for
428428
// Mach-O.

llvm/lib/MC/MCObjectStreamer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,11 @@ void MCObjectStreamer::reset() {
178178
MCStreamer::reset();
179179
}
180180

181-
void MCObjectStreamer::emitFrames(MCAsmBackend *MAB) {
181+
void MCObjectStreamer::emitFrames() {
182182
if (!getNumFrameInfos())
183183
return;
184184

185+
auto *MAB = &getAssembler().getBackend();
185186
if (EmitEHFrame)
186187
MCDwarfFrameEmitter::Emit(*this, MAB, true);
187188

llvm/lib/MC/MCWasmStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void MCWasmStreamer::emitIdent(StringRef IdentString) {
147147
}
148148

149149
void MCWasmStreamer::finishImpl() {
150-
emitFrames(nullptr);
150+
emitFrames();
151151

152152
this->MCObjectStreamer::finishImpl();
153153
}

llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void AArch64WinCOFFStreamer::emitWindowsUnwindTables() {
5353
}
5454

5555
void AArch64WinCOFFStreamer::finishImpl() {
56-
emitFrames(nullptr);
56+
emitFrames();
5757
emitWindowsUnwindTables();
5858

5959
MCWinCOFFStreamer::finishImpl();

llvm/lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void ARMWinCOFFStreamer::emitWindowsUnwindTables() {
5454
}
5555

5656
void ARMWinCOFFStreamer::finishImpl() {
57-
emitFrames(nullptr);
57+
emitFrames();
5858
emitWindowsUnwindTables();
5959

6060
MCWinCOFFStreamer::finishImpl();

llvm/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void X86WinCOFFStreamer::emitCVFPOData(const MCSymbol *ProcSym, SMLoc Loc) {
6565
}
6666

6767
void X86WinCOFFStreamer::finishImpl() {
68-
emitFrames(nullptr);
68+
emitFrames();
6969
emitWindowsUnwindTables();
7070

7171
MCWinCOFFStreamer::finishImpl();

0 commit comments

Comments
 (0)