[PATCH] D56178: [Nios2] Update overrides to new virtual method signatures
Alan Lu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 3 16:31:10 PST 2019
cag updated this revision to Diff 180176.
cag added a comment.
Wrapped lines at 80 characters
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56178/new/
https://reviews.llvm.org/D56178
Files:
lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp
lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h
Index: lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h
===================================================================
--- lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h
+++ lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.h
@@ -40,7 +40,8 @@
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target, MutableArrayRef<char> Data,
- uint64_t Value, bool IsResolved) const override;
+ uint64_t Value, bool IsResolved,
+ const MCSubtargetInfo *STI) const override;
Optional<MCFixupKind> getFixupKind(StringRef Name) const override;
const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;
@@ -53,7 +54,12 @@
/// relaxation.
///
/// \param Inst - The instruction to test.
- bool mayNeedRelaxation(const MCInst &Inst) const override { return false; }
+ /// \param STI - The MCSubtargetInfo in effect when the instruction was
+ /// encoded.
+ bool mayNeedRelaxation(const MCInst &Inst,
+ const MCSubtargetInfo &STI) const override {
+ return false;
+ }
/// fixupNeedsRelaxation - Target specific predicate for whether a given
/// fixup requires the associated instruction to be relaxed.
Index: lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp
===================================================================
--- lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp
+++ lib/Target/Nios2/MCTargetDesc/Nios2AsmBackend.cpp
@@ -56,7 +56,8 @@
void Nios2AsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target,
MutableArrayRef<char> Data, uint64_t Value,
- bool IsResolved) const {
+ bool IsResolved,
+ const MCSubtargetInfo *STI) const {
MCFixupKind Kind = Fixup.getKind();
Value = adjustFixupValue(Fixup, Value);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56178.180176.patch
Type: text/x-patch
Size: 1988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190104/5d4836ca/attachment.bin>
More information about the llvm-commits
mailing list