LLVM: llvm::object::SymbolRef Class Reference (original) (raw)

This is a value type class that represents a single symbol in the list of symbols in the object file. More...

#include "[llvm/Object/ObjectFile.h](ObjectFile%5F8h%5Fsource.html)"

Public Types
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 }
Public Member Functions
SymbolRef ()=default
SymbolRef (DataRefImpl SymbolP, const ObjectFile *Owner)
SymbolRef (const BasicSymbolRef &B)
Expected< StringRef > getName () const
Expected< uint64_t > getAddress () const
Returns the symbol virtual address (i.e.
Expected< uint64_t > getValue () 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::Type > getType () const
Expected< section_iterator > getSection () const
Get section this symbol is defined in reference to.
const ObjectFile * getObject () 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_t > getFlags () const
Get symbol flags (bitwise OR of SymbolRef::Flags)
DataRefImpl getRawDataRefImpl () const
const SymbolicFile * getObject () const

This is a value type class that represents a single symbol in the list of symbols in the object file.

Definition at line 170 of file ObjectFile.h.

Type

Enumerator
ST_Unknown
ST_Other
ST_Data
ST_Debug
ST_File
ST_Function

Definition at line 174 of file ObjectFile.h.

llvm::object::SymbolRef::SymbolRef ( ) default

SymbolRef() [2/3]

SymbolRef() [3/3]

getAddress()

getAlignment()

uint32_t llvm::object::SymbolRef::getAlignment ( ) const inline

getCommonSize()

uint64_t llvm::object::SymbolRef::getCommonSize ( ) const inline

getName()

getObject()

Definition at line 493 of file ObjectFile.h.

References llvm::cast(), and llvm::object::BasicSymbolRef::getObject().

Referenced by llvm::object::ELFSymbolRef::ELFSymbolRef(), getAddress(), getAlignment(), getCommonSize(), getName(), llvm::object::XCOFFSymbolRef::getName(), getSection(), llvm::object::XCOFFSymbolRef::getSize(), getType(), getValue(), llvm::object::XCOFFSymbolRef::getValue(), llvm::object::XCOFFSymbolRef::getXCOFFCsectAuxRef(), llvm::object::GOFFSymbolRef::GOFFSymbolRef(), and llvm::object::XCOFFSymbolRef::isFunction().

getSection()

getType()

Expected< SymbolRef::Type > llvm::object::SymbolRef::getType ( ) const inline

getValue()

SectionRef


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