LLVM  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::MCELFObjectTargetWriter Class Reference

#include <MCELFObjectWriter.h>

List of all members.

Public Member Functions

virtual ~MCELFObjectTargetWriter ()
virtual unsigned GetRelocType (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 39 of file MCELFObjectWriter.h.

Constructor & Destructor Documentation

MCELFObjectTargetWriter::MCELFObjectTargetWriter ( bool  Is64Bit_,
uint8_t  OSABI_,
uint16_t  EMachine_,
bool  HasRelocationAddend,
bool  IsN64 = false 
) [protected]

Definition at line 17 of file MCELFObjectTargetWriter.cpp.

Definition at line 65 of file MCELFObjectWriter.h.

Member Function Documentation

uint16_t llvm::MCELFObjectTargetWriter::getEMachine ( ) const [inline]

Definition at line 79 of file MCELFObjectWriter.h.

static uint8_t llvm::MCELFObjectTargetWriter::getOSABI ( Triple::OSType  OSType) [inline, static]
uint8_t llvm::MCELFObjectTargetWriter::getOSABI ( ) const [inline]
virtual unsigned llvm::MCELFObjectTargetWriter::GetRelocType ( const MCValue Target,
const MCFixup Fixup,
bool  IsPCRel 
) const [pure virtual]
uint8_t llvm::MCELFObjectTargetWriter::getRSsym ( uint32_t  Type) const [inline]

Definition at line 106 of file MCELFObjectWriter.h.

References R_SSYM_SHIFT.

uint8_t llvm::MCELFObjectTargetWriter::getRType ( uint32_t  Type) const [inline]

Definition at line 97 of file MCELFObjectWriter.h.

References R_TYPE_SHIFT.

uint8_t llvm::MCELFObjectTargetWriter::getRType2 ( uint32_t  Type) const [inline]

Definition at line 100 of file MCELFObjectWriter.h.

References R_TYPE2_SHIFT.

uint8_t llvm::MCELFObjectTargetWriter::getRType3 ( uint32_t  Type) const [inline]

Definition at line 103 of file MCELFObjectWriter.h.

References R_TYPE3_SHIFT.

Definition at line 80 of file MCELFObjectWriter.h.

Definition at line 81 of file MCELFObjectWriter.h.

Definition at line 82 of file MCELFObjectWriter.h.

Definition at line 27 of file MCELFObjectTargetWriter.cpp.

unsigned llvm::MCELFObjectTargetWriter::setRSsym ( unsigned  Value,
unsigned  Type 
) const [inline]

Definition at line 120 of file MCELFObjectWriter.h.

References R_SSYM_MASK, and R_SSYM_SHIFT.

unsigned llvm::MCELFObjectTargetWriter::setRType ( unsigned  Value,
unsigned  Type 
) const [inline]

Definition at line 111 of file MCELFObjectWriter.h.

References R_TYPE_MASK, and R_TYPE_SHIFT.

Definition at line 114 of file MCELFObjectWriter.h.

References R_TYPE2_MASK, and R_TYPE2_SHIFT.

Definition at line 117 of file MCELFObjectWriter.h.

References R_TYPE3_MASK, and R_TYPE3_SHIFT.

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

Definition at line 48 of file MCELFObjectTargetWriter.cpp.

References llvm::array_pod_sort(), and cmpRel().

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