LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
llvm::MCELFObjectTargetWriter Class Referenceabstract

#include "llvm/MC/MCELFObjectWriter.h"

Inheritance diagram for llvm::MCELFObjectTargetWriter:
Inheritance graph

Public Member Functions

virtual ~MCELFObjectTargetWriter ()=default
virtual unsigned getRelocType (MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const =0
virtual bool needsRelocateWithSymbol (const MCSymbol &Sym, unsigned Type) const
virtual void sortRelocs (const MCAssembler &Asm, std::vector< ELFRelocationEntry > &Relocs)
uint8_t getRType (uint32_t Type) const
uint8_t getRType2 (uint32_t Type) const
uint8_t getRType3 (uint32_t Type) const
uint8_t getRSsym (uint32_t Type) const
unsigned setRType (unsigned Value, unsigned Type) const
unsigned setRType2 (unsigned Value, unsigned Type) const
unsigned setRType3 (unsigned Value, unsigned Type) const
unsigned setRSsym (unsigned Value, unsigned Type) const
uint8_t getOSABI () const
uint16_t getEMachine () const
bool hasRelocationAddend () const
bool is64Bit () const
bool isN64 () const

Static Public Member Functions

static uint8_t getOSABI (Triple::OSType OSType)

Protected Member Functions

 MCELFObjectTargetWriter (bool Is64Bit_, uint8_t OSABI_, uint16_t EMachine_, bool HasRelocationAddend, bool IsN64=false)

Detailed Description

Definition at line 53 of file MCELFObjectWriter.h.

Constructor & Destructor Documentation

◆ MCELFObjectTargetWriter()

MCELFObjectTargetWriter::MCELFObjectTargetWriter ( bool  Is64Bit_,
uint8_t  OSABI_,
uint16_t  EMachine_,
bool  HasRelocationAddend,
bool  IsN64 = false 

Definition at line 14 of file MCELFObjectTargetWriter.cpp.

◆ ~MCELFObjectTargetWriter()

virtual llvm::MCELFObjectTargetWriter::~MCELFObjectTargetWriter ( )

Member Function Documentation

◆ getEMachine()

uint16_t llvm::MCELFObjectTargetWriter::getEMachine ( ) const

Definition at line 91 of file MCELFObjectWriter.h.

◆ getOSABI() [1/2]

static uint8_t llvm::MCELFObjectTargetWriter::getOSABI ( Triple::OSType  OSType)

◆ getOSABI() [2/2]

uint8_t llvm::MCELFObjectTargetWriter::getOSABI ( ) const

◆ getRelocType()

virtual unsigned llvm::MCELFObjectTargetWriter::getRelocType ( MCContext Ctx,
const MCValue Target,
const MCFixup Fixup,
bool  IsPCRel 
) const
pure virtual

Implemented in llvm::AVRELFObjectWriter.

◆ getRSsym()

uint8_t llvm::MCELFObjectTargetWriter::getRSsym ( uint32_t  Type) const

Definition at line 118 of file MCELFObjectWriter.h.

References R_SSYM_SHIFT.

◆ getRType()

uint8_t llvm::MCELFObjectTargetWriter::getRType ( uint32_t  Type) const

Definition at line 109 of file MCELFObjectWriter.h.

References R_TYPE_SHIFT.

◆ getRType2()

uint8_t llvm::MCELFObjectTargetWriter::getRType2 ( uint32_t  Type) const

Definition at line 112 of file MCELFObjectWriter.h.

References R_TYPE2_SHIFT.

◆ getRType3()

uint8_t llvm::MCELFObjectTargetWriter::getRType3 ( uint32_t  Type) const

Definition at line 115 of file MCELFObjectWriter.h.

References R_TYPE3_SHIFT.

◆ hasRelocationAddend()

bool llvm::MCELFObjectTargetWriter::hasRelocationAddend ( ) const

Definition at line 92 of file MCELFObjectWriter.h.

◆ is64Bit()

bool llvm::MCELFObjectTargetWriter::is64Bit ( ) const

Definition at line 93 of file MCELFObjectWriter.h.

◆ isN64()

bool llvm::MCELFObjectTargetWriter::isN64 ( ) const

Definition at line 94 of file MCELFObjectWriter.h.

◆ needsRelocateWithSymbol()

bool MCELFObjectTargetWriter::needsRelocateWithSymbol ( const MCSymbol Sym,
unsigned  Type 
) const

Definition at line 24 of file MCELFObjectTargetWriter.cpp.

◆ setRSsym()

unsigned llvm::MCELFObjectTargetWriter::setRSsym ( unsigned  Value,
unsigned  Type 
) const

Definition at line 132 of file MCELFObjectWriter.h.

References llvm::createELFObjectWriter(), R_SSYM_MASK, and R_SSYM_SHIFT.

◆ setRType()

unsigned llvm::MCELFObjectTargetWriter::setRType ( unsigned  Value,
unsigned  Type 
) const

Definition at line 123 of file MCELFObjectWriter.h.

References R_TYPE_MASK, and R_TYPE_SHIFT.

◆ setRType2()

unsigned llvm::MCELFObjectTargetWriter::setRType2 ( unsigned  Value,
unsigned  Type 
) const

Definition at line 126 of file MCELFObjectWriter.h.

References R_TYPE2_MASK, and R_TYPE2_SHIFT.

◆ setRType3()

unsigned llvm::MCELFObjectTargetWriter::setRType3 ( unsigned  Value,
unsigned  Type 
) const

Definition at line 129 of file MCELFObjectWriter.h.

References R_TYPE3_MASK, and R_TYPE3_SHIFT.

◆ sortRelocs()

void MCELFObjectTargetWriter::sortRelocs ( const MCAssembler Asm,
std::vector< ELFRelocationEntry > &  Relocs 

Definition at line 30 of file MCELFObjectTargetWriter.cpp.

The documentation for this class was generated from the following files: