Index: lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h =================================================================== --- lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h +++ lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h @@ -40,7 +40,8 @@ void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef Data, - uint64_t Value, bool IsResolved) const override; + uint64_t Value, bool IsResolved, + const MCSubtargetInfo *STI) const override; Optional getFixupKind(StringRef Name) const override; const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override; @@ -53,7 +54,12 @@ /// relaxation. /// /// \param Inst - The instruction to test. - bool mayNeedRelaxation(const MCInst &Inst) const override { return false; } + /// \param STI - The MCSubtargetInfo in effect when the instruction was + /// encoded. + bool mayNeedRelaxation(const MCInst &Inst, + const MCSubtargetInfo &STI) const override { + return false; + } /// fixupNeedsRelaxation - Target specific predicate for whether a given /// fixup requires the associated instruction to be relaxed. Index: lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp =================================================================== --- lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp +++ lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp @@ -56,7 +56,8 @@ void Nios2AsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef Data, uint64_t Value, - bool IsResolved) const { + bool IsResolved, + const MCSubtargetInfo *STI) const { MCFixupKind Kind = Fixup.getKind(); Value = adjustFixupValue(Fixup, Value);