mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Remove another unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -72,7 +72,7 @@ public:
|
|||||||
virtual ~MCELFObjectTargetWriter() {}
|
virtual ~MCELFObjectTargetWriter() {}
|
||||||
|
|
||||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const = 0;
|
bool IsPCRel) const = 0;
|
||||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||||
const MCValue &Target,
|
const MCValue &Target,
|
||||||
const MCFragment &F,
|
const MCFragment &F,
|
||||||
|
@ -179,10 +179,8 @@ class ELFObjectWriter : public MCObjectWriter {
|
|||||||
return TargetObjectWriter->hasRelocationAddend();
|
return TargetObjectWriter->hasRelocationAddend();
|
||||||
}
|
}
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol,
|
bool IsPCRel) const {
|
||||||
int64_t Addend) const {
|
return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel);
|
||||||
return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel,
|
|
||||||
IsRelocWithSymbol);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -839,8 +837,7 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
FixedValue = Value;
|
FixedValue = Value;
|
||||||
unsigned Type = GetRelocType(Target, Fixup, IsPCRel,
|
unsigned Type = GetRelocType(Target, Fixup, IsPCRel);
|
||||||
(RelocSymbol != 0), Addend);
|
|
||||||
MCSymbolRefExpr::VariantKind Modifier = Target.isAbsolute() ?
|
MCSymbolRefExpr::VariantKind Modifier = Target.isAbsolute() ?
|
||||||
MCSymbolRefExpr::VK_None : Target.getSymA()->getKind();
|
MCSymbolRefExpr::VK_None : Target.getSymA()->getKind();
|
||||||
if (RelocNeedsGOT(Modifier))
|
if (RelocNeedsGOT(Modifier))
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
@ -45,8 +45,7 @@ AArch64ELFObjectWriter::~AArch64ELFObjectWriter()
|
|||||||
|
|
||||||
unsigned AArch64ELFObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned AArch64ELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
bool IsPCRel,
|
bool IsPCRel) const {
|
||||||
bool IsRelocWithSymbol) const {
|
|
||||||
unsigned Type;
|
unsigned Type;
|
||||||
if (IsPCRel) {
|
if (IsPCRel) {
|
||||||
switch ((unsigned)Fixup.getKind()) {
|
switch ((unsigned)Fixup.getKind()) {
|
||||||
|
@ -35,7 +35,7 @@ namespace {
|
|||||||
virtual ~ARMELFObjectWriter();
|
virtual ~ARMELFObjectWriter();
|
||||||
|
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||||
const MCValue &Target, const MCFragment &F,
|
const MCValue &Target, const MCFragment &F,
|
||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
@ -141,8 +141,7 @@ const MCSymbol *ARMELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
|
|||||||
// offset
|
// offset
|
||||||
unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
bool IsPCRel,
|
bool IsPCRel) const {
|
||||||
bool IsRelocWithSymbol) const {
|
|
||||||
return GetRelocTypeInner(Target, Fixup, IsPCRel);
|
return GetRelocTypeInner(Target, Fixup, IsPCRel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ namespace {
|
|||||||
virtual ~MipsELFObjectWriter();
|
virtual ~MipsELFObjectWriter();
|
||||||
|
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||||
const MCValue &Target,
|
const MCValue &Target,
|
||||||
const MCFragment &F,
|
const MCFragment &F,
|
||||||
@ -76,8 +76,7 @@ const MCSymbol *MipsELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
|
|||||||
|
|
||||||
unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
bool IsPCRel,
|
bool IsPCRel) const {
|
||||||
bool IsRelocWithSymbol) const {
|
|
||||||
// determine the type of the relocation
|
// determine the type of the relocation
|
||||||
unsigned Type = (unsigned)ELF::R_MIPS_NONE;
|
unsigned Type = (unsigned)ELF::R_MIPS_NONE;
|
||||||
unsigned Kind = (unsigned)Fixup.getKind();
|
unsigned Kind = (unsigned)Fixup.getKind();
|
||||||
|
@ -29,7 +29,7 @@ namespace {
|
|||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
bool IsPCRel) const;
|
bool IsPCRel) const;
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||||
const MCValue &Target,
|
const MCValue &Target,
|
||||||
const MCFragment &F,
|
const MCFragment &F,
|
||||||
@ -382,8 +382,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
|
|||||||
|
|
||||||
unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
bool IsPCRel,
|
bool IsPCRel) const {
|
||||||
bool IsRelocWithSymbol) const {
|
|
||||||
return getRelocTypeInner(Target, Fixup, IsPCRel);
|
return getRelocTypeInner(Target, Fixup, IsPCRel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ public:
|
|||||||
AMDGPUELFObjectWriter();
|
AMDGPUELFObjectWriter();
|
||||||
protected:
|
protected:
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override {
|
bool IsPCRel) const override {
|
||||||
llvm_unreachable("Not implemented");
|
llvm_unreachable("Not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ namespace {
|
|||||||
virtual ~SparcELFObjectWriter() {}
|
virtual ~SparcELFObjectWriter() {}
|
||||||
protected:
|
protected:
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
|
|
||||||
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
|
||||||
const MCValue &Target,
|
const MCValue &Target,
|
||||||
@ -40,8 +40,8 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unsigned SparcELFObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned SparcELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup, bool IsPCRel,
|
const MCFixup &Fixup,
|
||||||
bool IsRelocWithSymbol) const {
|
bool IsPCRel) const {
|
||||||
|
|
||||||
if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) {
|
if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) {
|
||||||
if (SExpr->getKind() == SparcMCExpr::VK_Sparc_R_DISP32)
|
if (SExpr->getKind() == SparcMCExpr::VK_Sparc_R_DISP32)
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
// Override MCELFObjectTargetWriter.
|
// Override MCELFObjectTargetWriter.
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, const MCValue &Target,
|
const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, const MCValue &Target,
|
||||||
const MCFragment &F, const MCFixup &Fixup,
|
const MCFragment &F, const MCFixup &Fixup,
|
||||||
bool IsPCRel) const override;
|
bool IsPCRel) const override;
|
||||||
@ -83,8 +83,8 @@ static unsigned getPLTReloc(unsigned Kind) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unsigned SystemZObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned SystemZObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup, bool IsPCRel,
|
const MCFixup &Fixup,
|
||||||
bool IsRelocWithSymbol) const {
|
bool IsPCRel) const {
|
||||||
MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
|
MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
|
||||||
unsigned Kind = Fixup.getKind();
|
unsigned Kind = Fixup.getKind();
|
||||||
switch (Modifier) {
|
switch (Modifier) {
|
||||||
|
@ -25,7 +25,7 @@ namespace {
|
|||||||
virtual ~X86ELFObjectWriter();
|
virtual ~X86ELFObjectWriter();
|
||||||
protected:
|
protected:
|
||||||
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol) const override;
|
bool IsPCRel) const override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,8 +40,7 @@ X86ELFObjectWriter::~X86ELFObjectWriter()
|
|||||||
|
|
||||||
unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||||
const MCFixup &Fixup,
|
const MCFixup &Fixup,
|
||||||
bool IsPCRel,
|
bool IsPCRel) const {
|
||||||
bool IsRelocWithSymbol) const {
|
|
||||||
// determine the type of the relocation
|
// determine the type of the relocation
|
||||||
|
|
||||||
MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
|
MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
|
||||||
|
Reference in New Issue
Block a user