File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
llvm/lib/Target/X86/MCTargetDesc Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ class X86AsmBackend : public MCAsmBackend {
169
169
170
170
MCFixupKindInfo getFixupKindInfo (MCFixupKind Kind) const override ;
171
171
172
+ bool shouldForceRelocation (const MCAssembler &, const MCFixup &,
173
+ const MCValue &, const MCSubtargetInfo *) override ;
174
+
172
175
void applyFixup (const MCAssembler &Asm, const MCFixup &Fixup,
173
176
const MCValue &Target, MutableArrayRef<char > Data,
174
177
uint64_t Value, bool IsResolved,
@@ -687,6 +690,12 @@ static unsigned getFixupKindSize(unsigned Kind) {
687
690
}
688
691
}
689
692
693
+ bool X86AsmBackend::shouldForceRelocation (const MCAssembler &, const MCFixup &,
694
+ const MCValue &Target,
695
+ const MCSubtargetInfo *) {
696
+ return Target.getSpecifier ();
697
+ }
698
+
690
699
void X86AsmBackend::applyFixup (const MCAssembler &Asm, const MCFixup &Fixup,
691
700
const MCValue &, MutableArrayRef<char > Data,
692
701
uint64_t Value, bool IsResolved,
You can’t perform that action at this time.
0 commit comments