[PATCH] D31875: [AVR] Migrate to new MCAsmBackend applyFixup
Leslie Zhai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 11:07:39 PDT 2017
xiangzhai created this revision.
Hi LLVM developers,
`MCAsmBackend` added a new parameter `MCContext &Ctx` for `applyFixup`, so I just simply migrate it for AVR, please review my patch, thanks a lot!
BG: I am a Arduino fans, ported laserkbd <https://github.com/robopeak/laserkbd> to Linux :) and Thanks for Dylan McKay's great job: avr-llvm <https://github.com/avr-llvm/> I will try it on my UNO v3.0 board :)
Regards,
Leslie Zhai
Repository:
rL LLVM
https://reviews.llvm.org/D31875
Files:
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
Index: lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
===================================================================
--- lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
+++ lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
@@ -335,7 +335,7 @@
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: lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
===================================================================
--- lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
+++ lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
@@ -41,7 +41,7 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31875.94648.patch
Type: text/x-patch
Size: 1173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/21fa556c/attachment-0001.bin>
More information about the llvm-commits
mailing list