Skip to content

Commit a438b23

Browse files
committed
AArch64ELFObjectWriter: Remove MCContext argument
1 parent 068868d commit a438b23

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class AArch64ELFObjectWriter : public MCELFObjectTargetWriter {
4040
const MCFixup &Fixup, bool IsPCRel) const override;
4141
bool needsRelocateWithSymbol(const MCValue &Val, const MCSymbol &Sym,
4242
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;
4545

4646
bool IsILP32;
4747
};
@@ -57,9 +57,8 @@ AArch64ELFObjectWriter::AArch64ELFObjectWriter(uint8_t OSABI, bool IsILP32)
5757
IsILP32 ? ELF::R_AARCH64_P32_##rtype : ELF::R_AARCH64_##rtype
5858

5959
// 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 {
6362
if (Fixup.getTargetKind() != AArch64::fixup_aarch64_movw)
6463
return false;
6564
switch (RefKind) {
@@ -216,7 +215,7 @@ unsigned AArch64ELFObjectWriter::getRelocType(MCContext &Ctx,
216215
return ELF::R_AARCH64_NONE;
217216
}
218217
} else {
219-
if (IsILP32 && isNonILP32reloc(Fixup, RefKind, Ctx))
218+
if (IsILP32 && isNonILP32reloc(Fixup, RefKind))
220219
return ELF::R_AARCH64_NONE;
221220
switch (Fixup.getTargetKind()) {
222221
case FK_Data_1:

0 commit comments

Comments
 (0)