LLVM API Documentation
#include <ObjectFile.h>
Public Types | |
enum | Type { ST_Unknown, ST_Data, ST_Debug, ST_File, ST_Function, ST_Other } |
Public Member Functions | |
SymbolRef () | |
enum Flags | LLVM_ENUM_INT_TYPE (unsigned) |
SymbolRef (DataRefImpl SymbolP, const ObjectFile *Owner) | |
bool | operator== (const SymbolRef &Other) const |
bool | operator< (const SymbolRef &Other) const |
error_code | getNext (SymbolRef &Result) const |
error_code | getName (StringRef &Result) const |
error_code | getAddress (uint64_t &Result) const |
error_code | getFileOffset (uint64_t &Result) const |
error_code | getAlignment (uint32_t &Result) const |
Get the alignment of this symbol as the actual value (not log 2). More... | |
error_code | getSize (uint64_t &Result) const |
error_code | getType (SymbolRef::Type &Result) const |
error_code | getFlags (uint32_t &Result) const |
Get symbol flags (bitwise OR of SymbolRef::Flags) More... | |
error_code | getSection (section_iterator &Result) const |
Get section this symbol is defined in reference to. Result is end_sections() if it is undefined or is an absolute symbol. More... | |
error_code | getValue (uint64_t &Val) const |
Get value of the symbol in the symbol table. More... | |
DataRefImpl | getRawDataRefImpl () const |
Friends | |
class | SectionRef |
SymbolRef - This is a value type class that represents a single symbol in the list of symbols in the object file.
Definition at line 178 of file ObjectFile.h.
Enumerator | |
---|---|
ST_Unknown | |
ST_Data | |
ST_Debug | |
ST_File | |
ST_Function | |
ST_Other |
Definition at line 186 of file ObjectFile.h.
|
inline |
Definition at line 184 of file ObjectFile.h.
|
inline |
Definition at line 393 of file ObjectFile.h.
|
inline |
Returns the symbol virtual address (i.e. address at which it will be mapped).
Definition at line 413 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolAddress().
|
inline |
Get the alignment of this symbol as the actual value (not log 2).
Definition at line 421 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolAlignment().
|
inline |
Definition at line 417 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolFileOffset().
|
inline |
Get symbol flags (bitwise OR of SymbolRef::Flags)
Definition at line 429 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolFlags().
|
inline |
Definition at line 409 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolName().
|
inline |
Definition at line 405 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolNext().
|
inline |
Definition at line 445 of file ObjectFile.h.
Referenced by llvm::object::ELFObjectFile< ELFT >::getSymbolVersion().
|
inline |
Get section this symbol is defined in reference to. Result is end_sections() if it is undefined or is an absolute symbol.
Definition at line 433 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolSection().
|
inline |
Definition at line 425 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolSize().
|
inline |
Definition at line 437 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolType().
|
inline |
Get value of the symbol in the symbol table.
Definition at line 441 of file ObjectFile.h.
References llvm::object::ObjectFile::getSymbolValue().
|
inline |
Definition at line 195 of file ObjectFile.h.
Definition at line 401 of file ObjectFile.h.
Definition at line 397 of file ObjectFile.h.
|
friend |
Definition at line 179 of file ObjectFile.h.