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:53

Inherits from: MCObjectTargetWriter

Member Variables

private const uint8_t OSABI
private const uint8_t ABIVersion
private const uint16_t EMachine
private const unsigned int HasRelocationAddend
private const unsigned int Is64Bit

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 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 static unsigned int setRTypes(unsigned int Value1, unsigned int Value2, unsigned int Value3)
  • 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)

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:61

Parameters

bool Is64Bit_
uint8_t OSABI_
uint16_t EMachine_
bool HasRelocationAddend_
uint8_t ABIVersion_ = 0

virtual void addTargetSectionFlags(
    llvm::MCContext& Ctx,
    llvm::MCSectionELF& Sec)

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:97

Parameters

llvm::MCContext& Ctx
llvm::MCSectionELF& Sec

static bool classof(
    const llvm::MCObjectTargetWriter* W)

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:68

Parameters

const llvm::MCObjectTargetWriter* W

uint8_t getABIVersion() const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:102

uint16_t getEMachine() const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:103

Triple::ObjectFormatType getFormat() const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:67

static uint8_t getOSABI(Triple::OSType OSType)

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:72

Parameters

Triple::OSType OSType

uint8_t getOSABI() const

Description

@ {

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:101

uint8_t getRSsym(uint32_t Type) const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:129

Parameters

uint32_t Type

uint8_t getRType(uint32_t Type) const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:120

Parameters

uint32_t Type

uint8_t getRType2(uint32_t Type) const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:123

Parameters

uint32_t Type

uint8_t getRType3(uint32_t Type) const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:126

Parameters

uint32_t Type

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:88

Parameters

llvm::MCContext& Ctx
const llvm::MCValue& Target
const llvm::MCFixup& Fixup
bool IsPCRel

bool hasRelocationAddend() const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:104

bool is64Bit() const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:105

virtual bool needsRelocateWithSymbol(
    const llvm::MCSymbol& Sym,
    unsigned int Type) const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:91

Parameters

const llvm::MCSymbol& Sym
unsigned int Type

unsigned int setRSsym(unsigned int Value,
                      unsigned int Type) const

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:139

Parameters

unsigned int Value
unsigned int Type

static unsigned int setRTypes(unsigned int Value1,
                              unsigned int Value2,
                              unsigned int Value3)

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:134

Parameters

unsigned int Value1
unsigned int Value2
unsigned int Value3

virtual void sortRelocs(
    const llvm::MCAssembler& Asm,
    std::vector<ELFRelocationEntry>& Relocs)

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:94

Parameters

const llvm::MCAssembler& Asm
std::vector<ELFRelocationEntry>& Relocs

virtual ~MCELFObjectTargetWriter()

Declared at: llvm/include/llvm/MC/MCELFObjectWriter.h:65