Skip to content

Commit f569952

Browse files
committed
[CSKY] Update shouldForceRelocation after #73721
1 parent ec9e497 commit f569952

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ bool CSKYAsmBackend::mayNeedRelaxation(const MCInst &Inst,
262262

263263
bool CSKYAsmBackend::shouldForceRelocation(const MCAssembler &Asm,
264264
const MCFixup &Fixup,
265-
const MCValue &Target) {
265+
const MCValue &Target,
266+
const MCSubtargetInfo * /*STI*/) {
266267
if (Fixup.getKind() >= FirstLiteralRelocationKind)
267268
return true;
268269
switch (Fixup.getTargetKind()) {

llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class CSKYAsmBackend : public MCAsmBackend {
5353
const MCSubtargetInfo *STI) const override;
5454

5555
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
56-
const MCValue &Target) override;
56+
const MCValue &Target,
57+
const MCSubtargetInfo *STI) override;
5758

5859
std::unique_ptr<MCObjectTargetWriter>
5960
createObjectTargetWriter() const override;

0 commit comments

Comments
 (0)