29 XtensaObjectWriter(uint8_t OSABI);
31 virtual ~XtensaObjectWriter();
34 unsigned getRelocType(
const MCFixup &,
const MCValue &,
35 bool IsPCRel)
const override;
36 bool needsRelocateWithSymbol(
const MCValue &,
unsigned Type)
const override;
40XtensaObjectWriter::XtensaObjectWriter(
uint8_t OSABI)
44XtensaObjectWriter::~XtensaObjectWriter() {}
46unsigned XtensaObjectWriter::getRelocType(
const MCFixup &
Fixup,
47 const MCValue &Target,
51 switch ((
unsigned)
Fixup.getKind()) {
56 return ELF::R_XTENSA_SLOT0_OP;
60std::unique_ptr<MCObjectTargetWriter>
62 return std::make_unique<XtensaObjectWriter>(OSABI);
65bool XtensaObjectWriter::needsRelocateWithSymbol(
const MCValue &,
66 unsigned Type)
const {
PowerPC TLS Dynamic Call Fixup
The instances of the Type class are immutable: once they are created, they are never changed.
This is an optimization pass for GlobalISel generic memory operations.
std::unique_ptr< MCObjectTargetWriter > createXtensaObjectWriter(uint8_t OSABI, bool IsLittleEndian)
@ FK_Data_4
A four-byte fixup.