Skip to content

Commit

Permalink
Remove unused argument.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204956 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Mar 27, 2014
1 parent 63b11ef commit 0c0cd3a
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 43 deletions.
3 changes: 1 addition & 2 deletions include/llvm/MC/MCELFObjectWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ class MCELFObjectTargetWriter {
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,
Expand Down
2 changes: 1 addition & 1 deletion lib/MC/ELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 4 additions & 5 deletions lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class AArch64ELFObjectWriter : public MCELFObjectTargetWriter {
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:
};
}
Expand All @@ -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()) {
Expand Down
6 changes: 2 additions & 4 deletions lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}

Expand Down
8 changes: 3 additions & 5 deletions lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down
8 changes: 3 additions & 5 deletions lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}

Expand Down
5 changes: 2 additions & 3 deletions lib/Target/R600/MCTargetDesc/AMDGPUELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
12 changes: 4 additions & 8 deletions lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down
9 changes: 3 additions & 6 deletions lib/Target/SystemZ/MCTargetDesc/SystemZMCObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class SystemZObjectWriter : public MCELFObjectTargetWriter {
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;
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 2 additions & 4 deletions lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

Expand All @@ -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();
Expand Down

0 comments on commit 0c0cd3a

Please sign in to comment.