[AVR] Migrate to new MCAsmBackend applyFixup
authorJonathan Roelofs <jonathan@codesourcery.com>
Tue, 11 Apr 2017 14:51:49 +0000 (14:51 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Tue, 11 Apr 2017 14:51:49 +0000 (14:51 +0000)
https://reviews.llvm.org/D31875

Patch by Leslie Zhai!

llvm-svn: 299946

llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h

index 081d8b5740efc07302436d0f1cb0f7457c9c5c60..5c3b45ac2328504d87bd2fed6162c94353469987 100644 (file)
@@ -335,7 +335,7 @@ MCObjectWriter *AVRAsmBackend::createObjectWriter(raw_pwrite_stream &OS) const {
 
 void AVRAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
                                unsigned DataSize, uint64_t Value,
-                               bool IsPCRel) const {
+                               bool IsPCRel, MCContext &Ctx) const {
   if (Value == 0)
     return; // Doesn't change encoding.
 
index 7ff4b8f350f6137198e2170dfbd254f8f7589fd2..f2be2494684a27d6c715a24b7dddb0945bf93ee9 100644 (file)
@@ -41,7 +41,7 @@ public:
   MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override;
 
   void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
-                  uint64_t Value, bool IsPCRel) const override;
+                  uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
 
   const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;