LLVM 20.0.0git
|
Represents a symbol that has been evaluated to an address already. More...
#include "llvm/ExecutionEngine/JITSymbol.h"
Public Member Functions | |
JITEvaluatedSymbol ()=default | |
JITEvaluatedSymbol (std::nullptr_t) | |
Create a 'null' symbol. | |
JITEvaluatedSymbol (JITTargetAddress Address, JITSymbolFlags Flags) | |
Create a symbol for the given address and flags. | |
operator bool () const | |
An evaluated symbol converts to 'true' if its address is non-zero. | |
JITTargetAddress | getAddress () const |
Return the address of this symbol. | |
JITSymbolFlags | getFlags () const |
Return the flags for this symbol. | |
void | setFlags (JITSymbolFlags Flags) |
Set the flags for this symbol. | |
Static Public Member Functions | |
template<typename T > | |
static JITEvaluatedSymbol | fromPointer (T *P, JITSymbolFlags Flags=JITSymbolFlags::Exported) |
Create a symbol from the given pointer with the given flags. | |
Represents a symbol that has been evaluated to an address already.
Definition at line 229 of file JITSymbol.h.
|
default |
Referenced by fromPointer().
|
inline |
Create a 'null' symbol.
Definition at line 234 of file JITSymbol.h.
|
inline |
Create a symbol for the given address and flags.
Definition at line 237 of file JITSymbol.h.
References Address.
|
inlinestatic |
Create a symbol from the given pointer with the given flags.
Definition at line 243 of file JITSymbol.h.
References JITEvaluatedSymbol(), P, and llvm::pointerToJITTargetAddress().
|
inline |
Return the address of this symbol.
Definition at line 251 of file JITSymbol.h.
Referenced by llvm::MCJIT::getPointerToFunction().
|
inline |
Return the flags for this symbol.
Definition at line 254 of file JITSymbol.h.
|
inlineexplicit |
An evaluated symbol converts to 'true' if its address is non-zero.
Definition at line 248 of file JITSymbol.h.
|
inline |
Set the flags for this symbol.
Definition at line 257 of file JITSymbol.h.