LLVM 22.0.0git
|
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"
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 } |
Friends | |
class | SectionRef |
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.
Enumerator | |
---|---|
ST_Unknown | |
ST_Other | |
ST_Data | |
ST_Debug | |
ST_File | |
ST_Function |
Definition at line 174 of file ObjectFile.h.
|
default |
|
inline |
Definition at line 462 of file ObjectFile.h.
References llvm::object::BasicSymbolRef::BasicSymbolRef().
|
inline |
Definition at line 185 of file ObjectFile.h.
References assert(), B(), llvm::object::BasicSymbolRef::BasicSymbolRef(), llvm::object::BasicSymbolRef::getObject(), and llvm::isa().
Returns the symbol virtual address (i.e.
address at which it will be mapped).
Definition at line 469 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolAddress().
Referenced by llvm::getOffset(), getSymbolInfo(), llvm::object::XCOFFSymbolRef::isFunction(), and llvm::jitlink::printSymbolEntry().
|
inline |
Get the alignment of this symbol as the actual value (not log 2).
Definition at line 477 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolAlignment().
|
inline |
Definition at line 481 of file ObjectFile.h.
References llvm::object::ObjectFile::getCommonSymbolSize(), getObject(), and llvm::object::BasicSymbolRef::getRawDataRefImpl().
Definition at line 465 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolName().
|
inline |
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().
|
inline |
Get section this symbol is defined in reference to.
Result is section_end() if it is undefined or is an absolute symbol.
Definition at line 485 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolSection().
Referenced by llvm::object::SectionRef::containsSymbol(), llvm::RuntimeDyldCOFFThumb::getJITSymbolFlags(), and getSymbolInfo().
|
inline |
Definition at line 489 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolType().
Return the value of the symbol depending on the object this can be an offset or a virtual address.
Definition at line 473 of file ObjectFile.h.
References getObject(), llvm::object::BasicSymbolRef::getRawDataRefImpl(), and llvm::object::ObjectFile::getSymbolValue().
Referenced by llvm::object::computeSymbolSizes(), and llvm::RuntimeDyldCOFF::getSymbolOffset().
|
friend |