summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-06-06 10:57:50 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-06-06 10:57:50 +0000
commit3c9c10649bd4427d25398fb71aa5c9b9a79b44fb (patch)
treeb104e4e4fa0708380cf12dca5b196cbb3a3bb30e /llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp
parent0bba0df896b7439db4b9368f526b5fb457d94ce7 (diff)
downloadbcm5719-llvm-3c9c10649bd4427d25398fb71aa5c9b9a79b44fb.tar.gz
bcm5719-llvm-3c9c10649bd4427d25398fb71aa5c9b9a79b44fb.zip
Fix compilation of WebAssembly and RISCV after r334078
llvm-svn: 334085
Diffstat (limited to 'llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp
index e45f273605b..7cb561ab6e4 100644
--- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp
+++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp
@@ -47,7 +47,8 @@ class WebAssemblyAsmBackend final : public MCAsmBackend {
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target, MutableArrayRef<char> Data,
- uint64_t Value, bool IsPCRel) const override;
+ uint64_t Value, bool IsPCRel,
+ const MCSubtargetInfo *STI) const override;
std::unique_ptr<MCObjectTargetWriter>
createObjectTargetWriter() const override;
@@ -59,7 +60,10 @@ class WebAssemblyAsmBackend final : public MCAsmBackend {
return false;
}
- bool mayNeedRelaxation(const MCInst &Inst) const override { return false; }
+ bool mayNeedRelaxation(const MCInst &Inst,
+ const MCSubtargetInfo &STI) const override {
+ return false;
+ }
void relaxInstruction(const MCInst &Inst, const MCSubtargetInfo &STI,
MCInst &Res) const override {}
@@ -99,7 +103,8 @@ void WebAssemblyAsmBackend::applyFixup(const MCAssembler &Asm,
const MCFixup &Fixup,
const MCValue &Target,
MutableArrayRef<char> Data,
- uint64_t Value, bool IsPCRel) const {
+ uint64_t Value, bool IsPCRel,
+ const MCSubtargetInfo *STI) const {
const MCFixupKindInfo &Info = getFixupKindInfo(Fixup.getKind());
assert(Info.Flags == 0 && "WebAssembly does not use MCFixupKindInfo flags");
OpenPOWER on IntegriCloud