class MCELFObjectTargetWriter
Declaration
class MCELFObjectTargetWriter : public MCObjectTargetWriter { /* full declaration omitted */ };
Description
Base class for classes that define behaviour that is specific to both the target and the object format.
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:54
Inherits from: MCObjectTargetWriter
Method Overview
- protected MCELFObjectTargetWriter(bool Is64Bit_, uint8_t OSABI_, uint16_t EMachine_, bool HasRelocationAddend_, uint8_t ABIVersion_ = 0)
- public virtual void addTargetSectionFlags(llvm::MCContext & Ctx, llvm::MCSectionELF & Sec)
- public static bool classof(const llvm::MCObjectTargetWriter * W)
- public uint8_t getABIVersion() const
- public uint16_t getEMachine() const
- public virtual Triple::ObjectFormatType getFormat() const
- public static uint8_t getOSABI(Triple::OSType OSType)
- public uint8_t getOSABI() const
- public uint8_t getRSsym(uint32_t Type) const
- public uint8_t getRType(uint32_t Type) const
- public uint8_t getRType2(uint32_t Type) const
- public uint8_t getRType3(uint32_t Type) const
- public virtual unsigned int getRelocType(llvm::MCContext & Ctx, const llvm::MCValue & Target, const llvm::MCFixup & Fixup, bool IsPCRel) const
- public bool hasRelocationAddend() const
- public bool is64Bit() const
- public virtual bool needsRelocateWithSymbol(const llvm::MCSymbol & Sym, unsigned int Type) const
- public unsigned int setRSsym(unsigned int Value, unsigned int Type) const
- public unsigned int setRType(unsigned int Value, unsigned int Type) const
- public unsigned int setRType2(unsigned int Value, unsigned int Type) const
- public unsigned int setRType3(unsigned int Value, unsigned int Type) const
- public virtual void sortRelocs(const llvm::MCAssembler & Asm, std::vector<ELFRelocationEntry> & Relocs)
- public virtual ~MCELFObjectTargetWriter()
Inherited from MCObjectTargetWriter:
Methods
¶MCELFObjectTargetWriter(bool Is64Bit_,
uint8_t OSABI_,
uint16_t EMachine_,
bool HasRelocationAddend_,
uint8_t ABIVersion_ = 0)
MCELFObjectTargetWriter(bool Is64Bit_,
uint8_t OSABI_,
uint16_t EMachine_,
bool HasRelocationAddend_,
uint8_t ABIVersion_ = 0)
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:62
Parameters
- bool Is64Bit_
- uint8_t OSABI_
- uint16_t EMachine_
- bool HasRelocationAddend_
- uint8_t ABIVersion_ = 0
¶virtual void addTargetSectionFlags(
llvm::MCContext& Ctx,
llvm::MCSectionELF& Sec)
virtual void addTargetSectionFlags(
llvm::MCContext& Ctx,
llvm::MCSectionELF& Sec)
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:96
Parameters
- llvm::MCContext& Ctx
- llvm::MCSectionELF& Sec
¶static bool classof(
const llvm::MCObjectTargetWriter* W)
static bool classof(
const llvm::MCObjectTargetWriter* W)
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:69
Parameters
- const llvm::MCObjectTargetWriter* W
¶uint8_t getABIVersion() const
uint8_t getABIVersion() const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:101
¶uint16_t getEMachine() const
uint16_t getEMachine() const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:102
¶virtual Triple::ObjectFormatType getFormat() const
virtual Triple::ObjectFormatType getFormat() const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:68
¶static uint8_t getOSABI(Triple::OSType OSType)
static uint8_t getOSABI(Triple::OSType OSType)
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:73
Parameters
- Triple::OSType OSType
¶uint8_t getOSABI() const
uint8_t getOSABI() const
Description
@ {
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:100
¶uint8_t getRSsym(uint32_t Type) const
uint8_t getRSsym(uint32_t Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:128
Parameters
- uint32_t Type
¶uint8_t getRType(uint32_t Type) const
uint8_t getRType(uint32_t Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:119
Parameters
- uint32_t Type
¶uint8_t getRType2(uint32_t Type) const
uint8_t getRType2(uint32_t Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:122
Parameters
- uint32_t Type
¶uint8_t getRType3(uint32_t Type) const
uint8_t getRType3(uint32_t Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:125
Parameters
- uint32_t Type
¶virtual unsigned int getRelocType(
llvm::MCContext& Ctx,
const llvm::MCValue& Target,
const llvm::MCFixup& Fixup,
bool IsPCRel) const
virtual unsigned int getRelocType(
llvm::MCContext& Ctx,
const llvm::MCValue& Target,
const llvm::MCFixup& Fixup,
bool IsPCRel) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:87
Parameters
- llvm::MCContext& Ctx
- const llvm::MCValue& Target
- const llvm::MCFixup& Fixup
- bool IsPCRel
¶bool hasRelocationAddend() const
bool hasRelocationAddend() const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:103
¶bool is64Bit() const
bool is64Bit() const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:104
¶virtual bool needsRelocateWithSymbol(
const llvm::MCSymbol& Sym,
unsigned int Type) const
virtual bool needsRelocateWithSymbol(
const llvm::MCSymbol& Sym,
unsigned int Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:90
Parameters
- const llvm::MCSymbol& Sym
- unsigned int Type
¶unsigned int setRSsym(unsigned int Value,
unsigned int Type) const
unsigned int setRSsym(unsigned int Value,
unsigned int Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:142
Parameters
- unsigned int Value
- unsigned int Type
¶unsigned int setRType(unsigned int Value,
unsigned int Type) const
unsigned int setRType(unsigned int Value,
unsigned int Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:133
Parameters
- unsigned int Value
- unsigned int Type
¶unsigned int setRType2(unsigned int Value,
unsigned int Type) const
unsigned int setRType2(unsigned int Value,
unsigned int Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:136
Parameters
- unsigned int Value
- unsigned int Type
¶unsigned int setRType3(unsigned int Value,
unsigned int Type) const
unsigned int setRType3(unsigned int Value,
unsigned int Type) const
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:139
Parameters
- unsigned int Value
- unsigned int Type
¶virtual void sortRelocs(
const llvm::MCAssembler& Asm,
std::vector<ELFRelocationEntry>& Relocs)
virtual void sortRelocs(
const llvm::MCAssembler& Asm,
std::vector<ELFRelocationEntry>& Relocs)
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:93
Parameters
- const llvm::MCAssembler& Asm
- std::vector<ELFRelocationEntry>& Relocs
¶virtual ~MCELFObjectTargetWriter()
virtual ~MCELFObjectTargetWriter()
Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:66