Skip to content

Commit 932c256

Browse files
author
Kyle Krueger
committed
move RISCVELFStreamer constructor definition to .cpp
1 parent cafcfad commit 932c256

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ RISCVTargetELFStreamer::RISCVTargetELFStreamer(MCStreamer &S,
3636
setFlagsFromFeatures(STI);
3737
}
3838

39+
RISCVELFStreamer::RISCVELFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> MAB,
40+
std::unique_ptr<MCObjectWriter> MOW,
41+
std::unique_ptr<MCCodeEmitter> MCE)
42+
: MCELFStreamer(C, std::move(MAB), std::move(MOW), std::move(MCE)) {}
43+
3944
RISCVELFStreamer &RISCVTargetELFStreamer::getStreamer() {
4045
return static_cast<RISCVELFStreamer &>(Streamer);
4146
}

llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ class RISCVELFStreamer : public MCELFStreamer {
2828
public:
2929
RISCVELFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> MAB,
3030
std::unique_ptr<MCObjectWriter> MOW,
31-
std::unique_ptr<MCCodeEmitter> MCE)
32-
: MCELFStreamer(C, std::move(MAB), std::move(MOW), std::move(MCE)) {}
31+
std::unique_ptr<MCCodeEmitter> MCE);
3332

3433
void changeSection(MCSection *Section, uint32_t Subsection) override;
3534
void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;

0 commit comments

Comments
 (0)