[PATCH] D34551: [AVR] Migrate to new MCAsmBackend applyFixup Use a MutableArrayRef
Leslie Zhai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 23 01:53:35 PDT 2017
xiangzhai created this revision.
Dear Rafael,
https://reviews.llvm.org/rL305968 applyFixup Data's type was changed to `MutableArrayRef<char>` so I simply migrated for AVR target, please review my patch, thanks a lot!
Regards,
Leslie Zhai
Repository:
rL LLVM
https://reviews.llvm.org/D34551
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
@@ -333,7 +333,7 @@
MCELFObjectTargetWriter::getOSABI(OSType));
}
-void AVRAsmBackend::applyFixup(const MCFixup &Fixup, char *Data,
+void AVRAsmBackend::applyFixup(const MCFixup &Fixup, MutableArrayRef<char> Data,
unsigned DataSize, uint64_t Value,
bool IsPCRel, MCContext &Ctx) const {
if (Value == 0)
Index: lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
===================================================================
--- lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
+++ lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
@@ -40,7 +40,7 @@
MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override;
- void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
+ void applyFixup(const MCFixup &Fixup, MutableArrayRef<char> Data, unsigned DataSize,
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: D34551.103697.patch
Type: text/x-patch
Size: 1263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170623/edea864a/attachment.bin>
More information about the llvm-commits
mailing list