LLVM 20.0.0git
Public Member Functions | List of all members
llvm::object::ELFSymbolRef Class Reference

#include "llvm/Object/ELFObjectFile.h"

Inheritance diagram for llvm::object::ELFSymbolRef:
Inheritance graph
[legend]

Public Member Functions

 ELFSymbolRef (const SymbolRef &B)
 
const ELFObjectFileBasegetObject () const
 
uint64_t getSize () const
 
uint8_t getBinding () const
 
uint8_t getOther () const
 
uint8_t getELFType () const
 
StringRef getELFTypeName () const
 
- Public Member Functions inherited from llvm::object::SymbolRef
 SymbolRef ()=default
 
 SymbolRef (DataRefImpl SymbolP, const ObjectFile *Owner)
 
 SymbolRef (const BasicSymbolRef &B)
 
Expected< StringRefgetName () const
 
Expected< uint64_tgetAddress () const
 Returns the symbol virtual address (i.e.
 
Expected< uint64_tgetValue () const
 Return the value of the symbol depending on the object this can be an offset or a virtual address.
 
uint32_t getAlignment () const
 Get the alignment of this symbol as the actual value (not log 2).
 
uint64_t getCommonSize () const
 
Expected< SymbolRef::TypegetType () const
 
Expected< section_iteratorgetSection () const
 Get section this symbol is defined in reference to.
 
const ObjectFilegetObject () const
 
- Public Member Functions inherited from llvm::object::BasicSymbolRef
 BasicSymbolRef ()=default
 
 BasicSymbolRef (DataRefImpl SymbolP, const SymbolicFile *Owner)
 
bool operator== (const BasicSymbolRef &Other) const
 
bool operator< (const BasicSymbolRef &Other) const
 
void moveNext ()
 
Error printName (raw_ostream &OS) const
 
Expected< uint32_tgetFlags () const
 Get symbol flags (bitwise OR of SymbolRef::Flags)
 
DataRefImpl getRawDataRefImpl () const
 
const SymbolicFilegetObject () const
 

Additional Inherited Members

- Public Types inherited from llvm::object::SymbolRef
enum  Type {
  ST_Unknown , ST_Other , ST_Data , ST_Debug ,
  ST_File , ST_Function
}
 
- Public Types inherited from llvm::object::BasicSymbolRef
enum  Flags : unsigned {
  SF_None = 0 , SF_Undefined = 1U << 0 , SF_Global = 1U << 1 , SF_Weak = 1U << 2 ,
  SF_Absolute = 1U << 3 , SF_Common = 1U << 4 , SF_Indirect = 1U << 5 , SF_Exported = 1U << 6 ,
  SF_FormatSpecific = 1U << 7 , SF_Thumb = 1U << 8 , SF_Hidden = 1U << 9 , SF_Const = 1U << 10 ,
  SF_Executable = 1U << 11
}
 

Detailed Description

Definition at line 168 of file ELFObjectFile.h.

Constructor & Destructor Documentation

◆ ELFSymbolRef()

llvm::object::ELFSymbolRef::ELFSymbolRef ( const SymbolRef B)
inline

Definition at line 170 of file ELFObjectFile.h.

References assert(), and llvm::object::SymbolRef::getObject().

Member Function Documentation

◆ getBinding()

uint8_t llvm::object::ELFSymbolRef::getBinding ( ) const
inline

◆ getELFType()

uint8_t llvm::object::ELFSymbolRef::getELFType ( ) const
inline

◆ getELFTypeName()

StringRef llvm::object::ELFSymbolRef::getELFTypeName ( ) const
inline

Definition at line 194 of file ELFObjectFile.h.

References llvm::object::ElfSymbolTypes, and getELFType().

◆ getObject()

const ELFObjectFileBase * llvm::object::ELFSymbolRef::getObject ( ) const
inline

Definition at line 174 of file ELFObjectFile.h.

References llvm::object::BasicSymbolRef::getObject().

Referenced by getBinding(), getELFType(), getOther(), and getSize().

◆ getOther()

uint8_t llvm::object::ELFSymbolRef::getOther ( ) const
inline

◆ getSize()

uint64_t llvm::object::ELFSymbolRef::getSize ( ) const
inline

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