@@ -40,8 +40,8 @@ class AArch64ELFObjectWriter : public MCELFObjectTargetWriter {
40
40
const MCFixup &Fixup, bool IsPCRel) const override ;
41
41
bool needsRelocateWithSymbol (const MCValue &Val, const MCSymbol &Sym,
42
42
unsigned Type) const override ;
43
- bool isNonILP32reloc (const MCFixup &Fixup, AArch64MCExpr::Specifier RefKind,
44
- MCContext &Ctx ) const ;
43
+ bool isNonILP32reloc (const MCFixup &Fixup,
44
+ AArch64MCExpr::Specifier RefKind ) const ;
45
45
46
46
bool IsILP32;
47
47
};
@@ -57,9 +57,8 @@ AArch64ELFObjectWriter::AArch64ELFObjectWriter(uint8_t OSABI, bool IsILP32)
57
57
IsILP32 ? ELF::R_AARCH64_P32_##rtype : ELF::R_AARCH64_##rtype
58
58
59
59
// assumes IsILP32 is true
60
- bool AArch64ELFObjectWriter::isNonILP32reloc (const MCFixup &Fixup,
61
- AArch64MCExpr::Specifier RefKind,
62
- MCContext &Ctx) const {
60
+ bool AArch64ELFObjectWriter::isNonILP32reloc (
61
+ const MCFixup &Fixup, AArch64MCExpr::Specifier RefKind) const {
63
62
if (Fixup.getTargetKind () != AArch64::fixup_aarch64_movw)
64
63
return false ;
65
64
switch (RefKind) {
@@ -216,7 +215,7 @@ unsigned AArch64ELFObjectWriter::getRelocType(MCContext &Ctx,
216
215
return ELF::R_AARCH64_NONE;
217
216
}
218
217
} else {
219
- if (IsILP32 && isNonILP32reloc (Fixup, RefKind, Ctx ))
218
+ if (IsILP32 && isNonILP32reloc (Fixup, RefKind))
220
219
return ELF::R_AARCH64_NONE;
221
220
switch (Fixup.getTargetKind ()) {
222
221
case FK_Data_1:
0 commit comments