LLVM 22.0.0git
llvm::object::Elf_Crel_Impl< Is64 > Struct Template Reference

#include "llvm/Object/ELFTypes.h"

Public Types

using uint = std::conditional_t<Is64, uint64_t, uint32_t>

Public Member Functions

uint32_t getType (bool) const
uint32_t getSymbol (bool) const
void setSymbolAndType (uint32_t s, unsigned char t, bool)

Public Attributes

uint r_offset
uint32_t r_symidx
uint32_t r_type
std::conditional_t< Is64, int64_t, int32_t > r_addend

Static Public Attributes

static const bool HasAddend = true
static const bool IsCrel = true

Detailed Description

template<bool Is64>
struct llvm::object::Elf_Crel_Impl< Is64 >

Definition at line 489 of file ELFTypes.h.

Member Typedef Documentation

◆ uint

template<bool Is64>
using llvm::object::Elf_Crel_Impl< Is64 >::uint = std::conditional_t<Is64, uint64_t, uint32_t>

Definition at line 490 of file ELFTypes.h.

Member Function Documentation

◆ getSymbol()

template<bool Is64>
uint32_t llvm::object::Elf_Crel_Impl< Is64 >::getSymbol ( bool ) const
inline

Definition at line 500 of file ELFTypes.h.

References r_symidx.

◆ getType()

template<bool Is64>
uint32_t llvm::object::Elf_Crel_Impl< Is64 >::getType ( bool ) const
inline

Definition at line 499 of file ELFTypes.h.

References r_type.

◆ setSymbolAndType()

template<bool Is64>
void llvm::object::Elf_Crel_Impl< Is64 >::setSymbolAndType ( uint32_t s,
unsigned char t,
bool  )
inline

Definition at line 501 of file ELFTypes.h.

References r_symidx, and r_type.

Member Data Documentation

◆ HasAddend

template<bool Is64>
const bool llvm::object::Elf_Crel_Impl< Is64 >::HasAddend = true
static

Definition at line 491 of file ELFTypes.h.

◆ IsCrel

template<bool Is64>
const bool llvm::object::Elf_Crel_Impl< Is64 >::IsCrel = true
static

Definition at line 492 of file ELFTypes.h.

◆ r_addend

template<bool Is64>
std::conditional_t<Is64, int64_t, int32_t> llvm::object::Elf_Crel_Impl< Is64 >::r_addend

Definition at line 496 of file ELFTypes.h.

◆ r_offset

template<bool Is64>
uint llvm::object::Elf_Crel_Impl< Is64 >::r_offset

Definition at line 493 of file ELFTypes.h.

◆ r_symidx

template<bool Is64>
uint32_t llvm::object::Elf_Crel_Impl< Is64 >::r_symidx

Definition at line 494 of file ELFTypes.h.

Referenced by getSymbol(), and setSymbolAndType().

◆ r_type

template<bool Is64>
uint32_t llvm::object::Elf_Crel_Impl< Is64 >::r_type

Definition at line 495 of file ELFTypes.h.

Referenced by getType(), and setSymbolAndType().


The documentation for this struct was generated from the following file: