diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2018-06-07 15:29:09 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2018-06-07 15:29:09 +0000 |
| commit | 6cfb31c7c1ad63050df0ab2b5c016427387db6ca (patch) | |
| tree | fe32d94786386963771cc47c8f18cef0d675c842 | |
| parent | 51ff15f472143b2ccc3062650942dcfab1b2cb30 (diff) | |
| download | bcm5719-llvm-6cfb31c7c1ad63050df0ab2b5c016427387db6ca.tar.gz bcm5719-llvm-6cfb31c7c1ad63050df0ab2b5c016427387db6ca.zip | |
[AVR] Fix build after r334078
r334078 added MCSubtargetInfo to fixupNeedsRelaxation and applyFixup. This
patch makes the necessary adjustment for the AVR target.
llvm-svn: 334202
| -rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp index bce4d5e4409..f81a57dd71e 100644 --- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp @@ -358,8 +358,10 @@ AVRAsmBackend::createObjectTargetWriter() const { } void AVRAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, - const MCValue &Target, MutableArrayRef<char> Data, - uint64_t Value, bool IsPCRel) const { + const MCValue &Target, + MutableArrayRef<char> Data, uint64_t Value, + bool IsResolved, + const MCSubtargetInfo *STI) const { adjustFixupValue(Fixup, Target, Value, &Asm.getContext()); if (Value == 0) return; // Doesn't change encoding. diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h index ba3dbc769e9..d48077c3ab8 100644 --- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h @@ -42,7 +42,8 @@ public: void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef<char> Data, - uint64_t Value, bool IsPCRel) const override; + uint64_t Value, bool IsResolved, + const MCSubtargetInfo *STI) const override; const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override; @@ -50,7 +51,10 @@ public: return AVR::NumTargetFixupKinds; } - bool mayNeedRelaxation(const MCInst &Inst) const override { return false; } + bool mayNeedRelaxation(const MCInst &Inst, + const MCSubtargetInfo &STI) const override { + return false; + } bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, const MCRelaxableFragment *DF, |

