Skip to content

Commit

Permalink
[llvm] Remove redundant override 'RecordStreamer::emitInstruction' (NFC)
Browse files Browse the repository at this point in the history
`RecordStreamer::emitInstruction` simply calls
`MCStreamer::emitInstruction` (overrided method of parent class), which
makes the override unnecessary.
  • Loading branch information
JOE1994 committed Nov 5, 2023
1 parent 8103ae6 commit c7b3b71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions llvm/lib/Object/RecordStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ RecordStreamer::const_iterator RecordStreamer::begin() {

RecordStreamer::const_iterator RecordStreamer::end() { return Symbols.end(); }

void RecordStreamer::emitInstruction(const MCInst &Inst,
const MCSubtargetInfo &STI) {
MCStreamer::emitInstruction(Inst, STI);
}

void RecordStreamer::emitLabel(MCSymbol *Symbol, SMLoc Loc) {
MCStreamer::emitLabel(Symbol);
markDefined(*Symbol);
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Object/RecordStreamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class RecordStreamer : public MCStreamer {
public:
RecordStreamer(MCContext &Context, const Module &M);

void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;
void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override;
void emitAssignment(MCSymbol *Symbol, const MCExpr *Value) override;
bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override;
Expand Down

0 comments on commit c7b3b71

Please sign in to comment.