mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 17:03:09 +00:00
Remove redundant argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306189 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8eec1b8358
commit
bfb1e6dd81
@ -75,8 +75,7 @@ public:
|
||||
/// reported via \p Ctx.
|
||||
virtual void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel,
|
||||
MCContext &Ctx) const = 0;
|
||||
uint64_t Value, bool IsPCRel) const = 0;
|
||||
|
||||
/// @}
|
||||
|
||||
|
@ -744,7 +744,7 @@ void MCAssembler::layout(MCAsmLayout &Layout) {
|
||||
std::tie(Target, FixedValue, IsPCRel) =
|
||||
handleFixup(Layout, Frag, Fixup);
|
||||
getBackend().applyFixup(*this, Fixup, Target, Contents, FixedValue,
|
||||
IsPCRel, getContext());
|
||||
IsPCRel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
|
||||
bool mayNeedRelaxation(const MCInst &Inst) const override;
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||
@ -264,11 +264,12 @@ unsigned AArch64AsmBackend::getFixupKindContainereSizeInBytes(unsigned Kind) con
|
||||
void AArch64AsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind());
|
||||
if (!Value)
|
||||
return; // Doesn't change encoding.
|
||||
MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind());
|
||||
MCContext &Ctx = Asm.getContext();
|
||||
// Apply any target-specific value adjustments.
|
||||
Value = adjustFixupValue(Fixup, Value, Ctx);
|
||||
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const override {
|
||||
@ -131,7 +131,7 @@ void AMDGPUAsmBackend::processFixupValue(const MCAssembler &Asm,
|
||||
void AMDGPUAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
Value = adjustFixupValue(Fixup, Value, &Asm.getContext());
|
||||
if (!Value)
|
||||
return; // Doesn't change encoding.
|
||||
|
@ -887,8 +887,9 @@ static unsigned getFixupKindContainerSizeBytes(unsigned Kind) {
|
||||
void ARMAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind());
|
||||
MCContext &Ctx = Asm.getContext();
|
||||
Value = adjustFixupValue(Asm, Fixup, Target, Value, IsPCRel, Ctx,
|
||||
IsLittleEndian, true);
|
||||
if (!Value)
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
|
||||
unsigned getRelaxedOpcode(unsigned Op) const;
|
||||
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override;
|
||||
|
||||
@ -65,7 +65,7 @@ bool BPFAsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||
void BPFAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) {
|
||||
assert(Value == 0);
|
||||
} else if (Fixup.getKind() == FK_Data_4 || Fixup.getKind() == FK_Data_8) {
|
||||
|
@ -417,8 +417,7 @@ public:
|
||||
/// fixup kind as appropriate.
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t FixupValue, bool IsPCRel,
|
||||
MCContext &Ctx) const override {
|
||||
uint64_t FixupValue, bool IsPCRel) const override {
|
||||
|
||||
// When FixupValue is 0 the relocation is external and there
|
||||
// is nothing for us to do.
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override;
|
||||
|
||||
@ -92,7 +92,7 @@ bool LanaiAsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||
void LanaiAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool /*IsPCRel*/, MCContext & /*Ctx*/) const {
|
||||
bool /*IsPCRel*/) const {
|
||||
MCFixupKind Kind = Fixup.getKind();
|
||||
Value = adjustFixupValue(static_cast<unsigned>(Kind), Value);
|
||||
|
||||
|
@ -238,8 +238,9 @@ static unsigned calculateMMLEIndex(unsigned i) {
|
||||
void MipsAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
MCFixupKind Kind = Fixup.getKind();
|
||||
MCContext &Ctx = Asm.getContext();
|
||||
Value = adjustFixupValue(Fixup, Value, Ctx);
|
||||
|
||||
if (!Value)
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
|
||||
Optional<MCFixupKind> getFixupKind(StringRef Name) const override;
|
||||
const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override {
|
||||
uint64_t Value, bool IsPCRel) const override {
|
||||
Value = adjustFixupValue(Fixup.getKind(), Value);
|
||||
if (!Value) return; // Doesn't change encoding.
|
||||
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override;
|
||||
|
||||
@ -73,7 +73,7 @@ bool RISCVAsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||
void RISCVAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -275,8 +275,7 @@ namespace {
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel,
|
||||
MCContext &Ctx) const override {
|
||||
uint64_t Value, bool IsPCRel) const override {
|
||||
|
||||
Value = adjustFixupValue(Fixup.getKind(), Value);
|
||||
if (!Value) return; // Doesn't change encoding.
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override;
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override;
|
||||
uint64_t Value, bool IsPCRel) const override;
|
||||
bool mayNeedRelaxation(const MCInst &Inst) const override {
|
||||
return false;
|
||||
}
|
||||
@ -94,7 +94,7 @@ void SystemZMCAsmBackend::applyFixup(const MCAssembler &Asm,
|
||||
const MCFixup &Fixup,
|
||||
const MCValue &Target,
|
||||
MutableArrayRef<char> Data, uint64_t Value,
|
||||
bool IsPCRel, MCContext &Ctx) const {
|
||||
bool IsPCRel) const {
|
||||
MCFixupKind Kind = Fixup.getKind();
|
||||
unsigned Offset = Fixup.getOffset();
|
||||
unsigned BitSize = getFixupKindInfo(Kind).TargetSize;
|
||||
|
@ -110,7 +110,7 @@ public:
|
||||
|
||||
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||
const MCValue &Target, MutableArrayRef<char> Data,
|
||||
uint64_t Value, bool IsPCRel, MCContext &Ctx) const override {
|
||||
uint64_t Value, bool IsPCRel) const override {
|
||||
unsigned Size = 1 << getFixupKindLog2Size(Fixup.getKind());
|
||||
|
||||
assert(Fixup.getOffset() + Size <= Data.size() && "Invalid fixup offset!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user