[MC] Remove unneeded MC*AsmBackend::fixupNeedsRelaxation overrides
Follow-up to 88c0a8258800bbc72e7c0b0586436d4a1c62a260 ("[MC] Make MCAsmBackend::fixupNeedsRelaxation not pure virtual").
This commit is contained in:
parent
88c0a82588
commit
6e93e37fe9
@ -92,12 +92,6 @@ public:
|
||||
const MCSubtargetInfo *STI) const override {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const override {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class DirectXMCAsmInfo : public MCAsmInfo {
|
||||
|
@ -56,13 +56,6 @@ public:
|
||||
std::unique_ptr<MCObjectTargetWriter>
|
||||
createObjectTargetWriter() const override;
|
||||
|
||||
// No instruction requires relaxation
|
||||
bool fixupNeedsRelaxation(const MCFixup & /*Fixup*/, uint64_t /*Value*/,
|
||||
const MCRelaxableFragment * /*DF*/,
|
||||
const MCAsmLayout & /*Layout*/) const override {
|
||||
return false;
|
||||
}
|
||||
|
||||
const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;
|
||||
|
||||
unsigned getNumFixupKinds() const override {
|
||||
|
@ -30,13 +30,6 @@ public:
|
||||
return createSPIRVObjectTargetWriter();
|
||||
}
|
||||
|
||||
// No instruction requires relaxation.
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const override {
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned getNumFixupKinds() const override { return 1; }
|
||||
|
||||
bool mayNeedRelaxation(const MCInst &Inst,
|
||||
|
@ -305,16 +305,6 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
/// fixupNeedsRelaxation - Target specific predicate for whether a given
|
||||
/// fixup requires the associated instruction to be relaxed.
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup,
|
||||
uint64_t Value,
|
||||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const override {
|
||||
// FIXME.
|
||||
llvm_unreachable("fixupNeedsRelaxation() unimplemented");
|
||||
return false;
|
||||
}
|
||||
void relaxInstruction(MCInst &Inst,
|
||||
const MCSubtargetInfo &STI) const override {
|
||||
// FIXME.
|
||||
|
@ -153,16 +153,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// fixupNeedsRelaxation - Target specific predicate for whether a given
|
||||
/// fixup requires the associated instruction to be relaxed.
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const override {
|
||||
// Not implemented yet. For example, if we have a branch with
|
||||
// lager than SIMM32 immediate value, we want to relaxation such
|
||||
// branch instructions.
|
||||
return false;
|
||||
}
|
||||
void relaxInstruction(MCInst &Inst,
|
||||
const MCSubtargetInfo &STI) const override {
|
||||
// Aurora VE doesn't support relaxInstruction yet.
|
||||
|
Loading…
x
Reference in New Issue
Block a user