File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
llvm/lib/Target/AMDGPU/MCTargetDesc Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 18
18
#include " llvm/MC/MCFixupKindInfo.h"
19
19
#include " llvm/MC/MCObjectWriter.h"
20
20
#include " llvm/MC/MCSubtargetInfo.h"
21
+ #include " llvm/MC/MCValue.h"
21
22
#include " llvm/MC/TargetRegistry.h"
22
23
#include " llvm/Support/EndianStream.h"
23
24
#include " llvm/TargetParser/TargetParser.h"
@@ -51,6 +52,8 @@ class AMDGPUAsmBackend : public MCAsmBackend {
51
52
52
53
std::optional<MCFixupKind> getFixupKind (StringRef Name) const override ;
53
54
MCFixupKindInfo getFixupKindInfo (MCFixupKind Kind) const override ;
55
+ bool shouldForceRelocation (const MCAssembler &, const MCFixup &,
56
+ const MCValue &, const MCSubtargetInfo *) override ;
54
57
};
55
58
56
59
} // End anonymous namespace
@@ -189,6 +192,13 @@ MCFixupKindInfo AMDGPUAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
189
192
return Infos[Kind - FirstTargetFixupKind];
190
193
}
191
194
195
+ bool AMDGPUAsmBackend::shouldForceRelocation (const MCAssembler &,
196
+ const MCFixup &,
197
+ const MCValue &Target,
198
+ const MCSubtargetInfo *) {
199
+ return Target.getSpecifier ();
200
+ }
201
+
192
202
unsigned AMDGPUAsmBackend::getMinimumNopSize () const {
193
203
return 4 ;
194
204
}
You can’t perform that action at this time.
0 commit comments