mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
63b11ef6d4
commit
0c0cd3a4ee
@ -72,8 +72,7 @@ public:
|
||||
virtual ~MCELFObjectTargetWriter() {}
|
||||
|
||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const = 0;
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const = 0;
|
||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||
const MCValue &Target,
|
||||
const MCFragment &F,
|
||||
|
@ -182,7 +182,7 @@ class ELFObjectWriter : public MCObjectWriter {
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel,
|
||||
IsRelocWithSymbol, Addend);
|
||||
IsRelocWithSymbol);
|
||||
}
|
||||
|
||||
public:
|
||||
|
@ -28,9 +28,9 @@ public:
|
||||
virtual ~AArch64ELFObjectWriter();
|
||||
|
||||
protected:
|
||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const;
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
|
||||
private:
|
||||
};
|
||||
}
|
||||
@ -46,8 +46,7 @@ AArch64ELFObjectWriter::~AArch64ELFObjectWriter()
|
||||
unsigned AArch64ELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
bool IsRelocWithSymbol) const {
|
||||
unsigned Type;
|
||||
if (IsPCRel) {
|
||||
switch ((unsigned)Fixup.getKind()) {
|
||||
|
@ -35,8 +35,7 @@ namespace {
|
||||
virtual ~ARMELFObjectWriter();
|
||||
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const override;
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||
const MCValue &Target, const MCFragment &F,
|
||||
const MCFixup &Fixup,
|
||||
@ -143,8 +142,7 @@ const MCSymbol *ARMELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
|
||||
unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
bool IsRelocWithSymbol) const {
|
||||
return GetRelocTypeInner(Target, Fixup, IsPCRel);
|
||||
}
|
||||
|
||||
|
@ -39,9 +39,8 @@ namespace {
|
||||
|
||||
virtual ~MipsELFObjectWriter();
|
||||
|
||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const;
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||
const MCValue &Target,
|
||||
const MCFragment &F,
|
||||
@ -78,8 +77,7 @@ const MCSymbol *MipsELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
|
||||
unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
bool IsRelocWithSymbol) const {
|
||||
// determine the type of the relocation
|
||||
unsigned Type = (unsigned)ELF::R_MIPS_NONE;
|
||||
unsigned Kind = (unsigned)Fixup.getKind();
|
||||
|
@ -28,9 +28,8 @@ namespace {
|
||||
virtual unsigned getRelocTypeInner(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel) const;
|
||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const;
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||
const MCValue &Target,
|
||||
const MCFragment &F,
|
||||
@ -384,8 +383,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
|
||||
unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
bool IsRelocWithSymbol) const {
|
||||
return getRelocTypeInner(Target, Fixup, IsPCRel);
|
||||
}
|
||||
|
||||
|
@ -19,9 +19,8 @@ class AMDGPUELFObjectWriter : public MCELFObjectTargetWriter {
|
||||
public:
|
||||
AMDGPUELFObjectWriter();
|
||||
protected:
|
||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override {
|
||||
llvm_unreachable("Not implemented");
|
||||
}
|
||||
|
||||
|
@ -28,9 +28,8 @@ namespace {
|
||||
|
||||
virtual ~SparcELFObjectWriter() {}
|
||||
protected:
|
||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const;
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
|
||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||
const MCValue &Target,
|
||||
@ -40,12 +39,9 @@ namespace {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
unsigned SparcELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
const MCFixup &Fixup, bool IsPCRel,
|
||||
bool IsRelocWithSymbol) const {
|
||||
|
||||
if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) {
|
||||
if (SExpr->getKind() == SparcMCExpr::VK_Sparc_R_DISP32)
|
||||
|
@ -25,8 +25,7 @@ public:
|
||||
protected:
|
||||
// Override MCELFObjectTargetWriter.
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const override;
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, const MCValue &Target,
|
||||
const MCFragment &F, const MCFixup &Fixup,
|
||||
bool IsPCRel) const override;
|
||||
@ -84,10 +83,8 @@ static unsigned getPLTReloc(unsigned Kind) {
|
||||
}
|
||||
|
||||
unsigned SystemZObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
const MCFixup &Fixup, bool IsPCRel,
|
||||
bool IsRelocWithSymbol) const {
|
||||
MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
|
||||
unsigned Kind = Fixup.getKind();
|
||||
switch (Modifier) {
|
||||
|
@ -25,8 +25,7 @@ namespace {
|
||||
virtual ~X86ELFObjectWriter();
|
||||
protected:
|
||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||
bool IsPCRel, bool IsRelocWithSymbol,
|
||||
int64_t Addend) const override;
|
||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
||||
};
|
||||
}
|
||||
|
||||
@ -42,8 +41,7 @@ X86ELFObjectWriter::~X86ELFObjectWriter()
|
||||
unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel,
|
||||
bool IsRelocWithSymbol,
|
||||
int64_t Addend) const {
|
||||
bool IsRelocWithSymbol) const {
|
||||
// determine the type of the relocation
|
||||
|
||||
MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
|
||||
|
Loading…
Reference in New Issue
Block a user