llvm.org GIT mirror llvm / 5cadb75
[AVR] Fix build after r334078 r334078 added MCSubtargetInfo to fixupNeedsRelaxation and applyFixup. This patch makes the necessary adjustment for the AVR target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334202 91177308-0d34-0410-b5e6-96231b3b80d8 Alex Bradbury 2 years ago
2 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
357357 }
358358
359359 void AVRAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
360 const MCValue &Target, MutableArrayRef Data,
361 uint64_t Value, bool IsPCRel) const {
360 const MCValue &Target,
361 MutableArrayRef Data, uint64_t Value,
362 bool IsResolved,
363 const MCSubtargetInfo *STI) const {
362364 adjustFixupValue(Fixup, Target, Value, &Asm.getContext());
363365 if (Value == 0)
364366 return; // Doesn't change encoding.
4141
4242 void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
4343 const MCValue &Target, MutableArrayRef Data,
44 uint64_t Value, bool IsPCRel) const override;
44 uint64_t Value, bool IsResolved,
45 const MCSubtargetInfo *STI) const override;
4546
4647 const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;
4748
4950 return AVR::NumTargetFixupKinds;
5051 }
5152
52 bool mayNeedRelaxation(const MCInst &Inst) const override { return false; }
53 bool mayNeedRelaxation(const MCInst &Inst,
54 const MCSubtargetInfo &STI) const override {
55 return false;
56 }
5357
5458 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
5559 const MCRelaxableFragment *DF,