Skip to content

Commit 9f03bc3

Browse files
committed
[MC] Remove unneeded MC*AsmBackend::fixupNeedsRelaxation overrides
Follow-up to 88c0a82 ("[MC] Make MCAsmBackend::fixupNeedsRelaxation not pure virtual").
1 parent 45b360d commit 9f03bc3

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,6 @@ class PPCAsmBackend : public MCAsmBackend {
191191
}
192192
}
193193

194-
bool fixupNeedsRelaxation(const MCFixup &Fixup,
195-
uint64_t Value,
196-
const MCRelaxableFragment *DF,
197-
const MCAsmLayout &Layout) const override {
198-
// FIXME.
199-
llvm_unreachable("relaxInstruction() unimplemented");
200-
}
201-
202194
void relaxInstruction(MCInst &Inst,
203195
const MCSubtargetInfo &STI) const override {
204196
// FIXME.

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ class RISCVAsmBackend : public MCAsmBackend {
6868
const MCValue &Target,
6969
const MCSubtargetInfo *STI) override;
7070

71-
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
72-
const MCRelaxableFragment *DF,
73-
const MCAsmLayout &Layout) const override {
74-
llvm_unreachable("Handled by fixupNeedsRelaxationAdvanced");
75-
}
76-
7771
bool fixupNeedsRelaxationAdvanced(const MCAssembler &Asm,
7872
const MCFixup &Fixup, bool Resolved,
7973
uint64_t Value,

0 commit comments

Comments
 (0)