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 () | |
SymbolRef (DataRefImpl SymbolP, const ObjectFile *Owner) | |
std::error_code | getName (StringRef &Result) const |
std::error_code | getAddress (uint64_t &Result) const |
std::error_code | getAlignment (uint32_t &Result) const |
Get the alignment of this symbol as the actual value (not log 2). | |
std::error_code | getSize (uint64_t &Result) const |
std::error_code | getType (SymbolRef::Type &Result) const |
std::error_code | getOther (uint8_t &Result) const |
std::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. | |
const ObjectFile * | getObject () 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 129 of file ObjectFile.h.
Definition at line 135 of file ObjectFile.h.
llvm::object::SymbolRef::SymbolRef | ( | ) | [inline] |
Definition at line 133 of file ObjectFile.h.
llvm::object::SymbolRef::SymbolRef | ( | DataRefImpl | SymbolP, |
const ObjectFile * | Owner | ||
) | [inline] |
Definition at line 338 of file ObjectFile.h.
std::error_code llvm::object::SymbolRef::getAddress | ( | uint64_t & | Result | ) | const [inline] |
Returns the symbol virtual address (i.e. address at which it will be mapped).
Definition at line 345 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolAddress().
Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory(), and llvm::getOffset().
std::error_code llvm::object::SymbolRef::getAlignment | ( | uint32_t & | Result | ) | const [inline] |
Get the alignment of this symbol as the actual value (not log 2).
Definition at line 349 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolAlignment().
std::error_code llvm::object::SymbolRef::getName | ( | StringRef & | Result | ) | const [inline] |
Definition at line 341 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolName().
Referenced by llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::RuntimeDyldMachO::populateIndirectSymbolPointersSection(), printRelocationTargetName(), and llvm::RuntimeDyldELF::processRelocationRef().
const ObjectFile * llvm::object::SymbolRef::getObject | ( | ) | const [inline] |
Reimplemented from llvm::object::BasicSymbolRef.
Definition at line 369 of file ObjectFile.h.
Referenced by getAddress(), getAlignment(), getName(), llvm::getOffset(), getOther(), getSection(), getSize(), and getType().
std::error_code llvm::object::SymbolRef::getOther | ( | uint8_t & | Result | ) | const [inline] |
Definition at line 365 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolOther().
Referenced by llvm::RuntimeDyldELF::processRelocationRef().
std::error_code llvm::object::SymbolRef::getSection | ( | section_iterator & | Result | ) | const [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 357 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolSection().
Referenced by llvm::getOffset(), and llvm::RuntimeDyldELF::processRelocationRef().
std::error_code llvm::object::SymbolRef::getSize | ( | uint64_t & | Result | ) | const [inline] |
Definition at line 353 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolSize().
std::error_code llvm::object::SymbolRef::getType | ( | SymbolRef::Type & | Result | ) | const [inline] |
Definition at line 361 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolType().
Referenced by llvm::RuntimeDyldELF::processRelocationRef().
friend class SectionRef [friend] |
Definition at line 130 of file ObjectFile.h.