From 6fb757e57432582bc55b39ca21b83ab8d4c9b051 Mon Sep 17 00:00:00 2001 From: Jonathan Roelofs Date: Tue, 11 Apr 2017 14:51:49 +0000 Subject: [PATCH] [AVR] Migrate to new MCAsmBackend applyFixup https://reviews.llvm.org/D31875 Patch by Leslie Zhai! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299946 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp | 2 +- lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp b/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp index 081d8b5740e..5c3b45ac232 100644 --- a/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp +++ b/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp @@ -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. diff --git a/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h b/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h index 7ff4b8f350f..f2be2494684 100644 --- a/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h +++ b/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h @@ -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; -- 2.40.0