Skip to content

Commit d5a69ef

Browse files
author
git apple-llvm automerger
committed
Merge commit '3793cc1561c9' from llvm.org/main into next
2 parents e695572 + 3793cc1 commit d5a69ef

File tree

11 files changed

+13
-24
lines changed

11 files changed

+13
-24
lines changed

llvm/include/llvm/MC/MCAsmBackend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ class MCAsmBackend {
165165

166166
/// Target specific predicate for whether a given fixup requires the
167167
/// associated instruction to be relaxed.
168-
virtual bool fixupNeedsRelaxationAdvanced(const MCAssembler &,
169-
const MCFixup &, const MCValue &,
168+
virtual bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &,
170169
uint64_t, bool Resolved) const;
171170

172171
/// Simple predicate for targets where !Resolved implies requiring relaxation

llvm/lib/MC/MCAsmBackend.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ MCFixupKindInfo MCAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
138138
return Builtins[Kind - FK_NONE];
139139
}
140140

141-
bool MCAsmBackend::fixupNeedsRelaxationAdvanced(const MCAssembler &,
142-
const MCFixup &Fixup,
141+
bool MCAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup,
143142
const MCValue &, uint64_t Value,
144143
bool Resolved) const {
145144
if (!Resolved)

llvm/lib/MC/MCAssembler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ bool MCAssembler::fixupNeedsRelaxation(const MCFixup &Fixup,
990990
uint64_t Value;
991991
bool Resolved = evaluateFixup(DF, const_cast<MCFixup &>(Fixup), Target, Value,
992992
/*RecordReloc=*/false, {});
993-
return getBackend().fixupNeedsRelaxationAdvanced(*this, Fixup, Target, Value,
993+
return getBackend().fixupNeedsRelaxationAdvanced(Fixup, Target, Value,
994994
Resolved);
995995
}
996996

llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,12 @@ static bool needsInterworking(const MCAssembler &Asm, const MCSymbol *Sym,
340340
return false;
341341
}
342342

343-
bool ARMAsmBackend::fixupNeedsRelaxationAdvanced(const MCAssembler &Asm,
344-
const MCFixup &Fixup,
343+
bool ARMAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup,
345344
const MCValue &Target,
346345
uint64_t Value,
347346
bool Resolved) const {
348347
const MCSymbol *Sym = Target.getAddSym();
349-
if (needsInterworking(Asm, Sym, Fixup.getTargetKind()))
348+
if (needsInterworking(*Asm, Sym, Fixup.getTargetKind()))
350349
return true;
351350

352351
if (!Resolved)

llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ class ARMAsmBackend : public MCAsmBackend {
5050
const char *reasonForFixupRelaxation(const MCFixup &Fixup,
5151
uint64_t Value) const;
5252

53-
bool fixupNeedsRelaxationAdvanced(const MCAssembler &,
54-
const MCFixup &, const MCValue &, uint64_t,
53+
bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
5554
bool) const override;
5655

5756
void relaxInstruction(MCInst &Inst,

llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
165165
}
166166
}
167167

168-
bool CSKYAsmBackend::fixupNeedsRelaxationAdvanced(const MCAssembler &,
169-
const MCFixup &Fixup,
168+
bool CSKYAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup,
170169
const MCValue &,
171170
uint64_t Value,
172171
bool Resolved) const {

llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ class CSKYAsmBackend : public MCAsmBackend {
3737
bool mayNeedRelaxation(const MCInst &Inst,
3838
const MCSubtargetInfo &STI) const override;
3939

40-
bool fixupNeedsRelaxationAdvanced(const MCAssembler &,
41-
const MCFixup &, const MCValue &, uint64_t,
40+
bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
4241
bool) const override;
4342

4443
bool writeNopData(raw_ostream &OS, uint64_t Count,

llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,7 @@ class HexagonAsmBackend : public MCAsmBackend {
564564

565565
/// fixupNeedsRelaxation - Target specific predicate for whether a given
566566
/// fixup requires the associated instruction to be relaxed.
567-
bool fixupNeedsRelaxationAdvanced(const MCAssembler &Asm,
568-
const MCFixup &Fixup, const MCValue &,
567+
bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, const MCValue &,
569568
uint64_t Value,
570569
bool Resolved) const override {
571570
MCInst const &MCB = *RelaxedMCB;

llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ MCFixupKindInfo RISCVAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
105105
return Infos[Kind - FirstTargetFixupKind];
106106
}
107107

108-
bool RISCVAsmBackend::fixupNeedsRelaxationAdvanced(const MCAssembler &,
109-
const MCFixup &Fixup,
108+
bool RISCVAsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup,
110109
const MCValue &,
111110
uint64_t Value,
112111
bool Resolved) const {

llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ class RISCVAsmBackend : public MCAsmBackend {
5858
std::unique_ptr<MCObjectTargetWriter>
5959
createObjectTargetWriter() const override;
6060

61-
bool fixupNeedsRelaxationAdvanced(const MCAssembler &,
62-
const MCFixup &, const MCValue &, uint64_t,
61+
bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
6362
bool) const override;
6463

6564
std::optional<MCFixupKind> getFixupKind(StringRef Name) const override;

llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ class X86AsmBackend : public MCAsmBackend {
178178
bool mayNeedRelaxation(const MCInst &Inst,
179179
const MCSubtargetInfo &STI) const override;
180180

181-
bool fixupNeedsRelaxationAdvanced(const MCAssembler &,
182-
const MCFixup &, const MCValue &, uint64_t,
181+
bool fixupNeedsRelaxationAdvanced(const MCFixup &, const MCValue &, uint64_t,
183182
bool) const override;
184183

185184
void relaxInstruction(MCInst &Inst,
@@ -736,8 +735,7 @@ bool X86AsmBackend::mayNeedRelaxation(const MCInst &MI,
736735
MI.getOperand(MI.getNumOperands() - 1 - SkipOperands).isExpr());
737736
}
738737

739-
bool X86AsmBackend::fixupNeedsRelaxationAdvanced(const MCAssembler &,
740-
const MCFixup &Fixup,
738+
bool X86AsmBackend::fixupNeedsRelaxationAdvanced(const MCFixup &Fixup,
741739
const MCValue &Target,
742740
uint64_t Value,
743741
bool Resolved) const {

0 commit comments

Comments
 (0)