[X86] Define shouldForceRelocation

Somehow needed by LTO/X86/cfi_jt_aliases.ll

Fixes: 6f6dc1f239
This commit is contained in:
Fangrui Song
2025-05-21 23:52:54 -07:00
parent 04211ba727
commit 4fdcde56a5

View File

@@ -169,6 +169,9 @@ public:
MCFixupKindInfo getFixupKindInfo(MCFixupKind Kind) const override;
bool shouldForceRelocation(const MCAssembler &, const MCFixup &,
const MCValue &, const MCSubtargetInfo *) override;
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target, MutableArrayRef<char> Data,
uint64_t Value, bool IsResolved,
@@ -687,6 +690,12 @@ static unsigned getFixupKindSize(unsigned Kind) {
}
}
bool X86AsmBackend::shouldForceRelocation(const MCAssembler &, const MCFixup &,
const MCValue &Target,
const MCSubtargetInfo *) {
return Target.getSpecifier();
}
void X86AsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &, MutableArrayRef<char> Data,
uint64_t Value, bool IsResolved,