[X86] Define shouldForceRelocation
Somehow needed by LTO/X86/cfi_jt_aliases.ll
Fixes: 6f6dc1f239
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user