#include "MCTargetDesc/LanaiBaseInfo.h"
#include "MCTargetDesc/LanaiFixupKinds.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/Support/ErrorHandling.h"
usingnamespacellvm;
namespace {
class LanaiELFObjectWriter : public MCELFObjectTargetWriter { … };
}
LanaiELFObjectWriter::LanaiELFObjectWriter(uint8_t OSABI)
: … { … }
unsigned LanaiELFObjectWriter::getRelocType(MCContext & ,
const MCValue & ,
const MCFixup &Fixup,
bool ) const { … }
bool LanaiELFObjectWriter::needsRelocateWithSymbol(const MCValue &,
const MCSymbol &,
unsigned Type) const { … }
std::unique_ptr<MCObjectTargetWriter>
llvm::createLanaiELFObjectWriter(uint8_t OSABI) { … }