LLVM 20.0.0git
|
Materializes the given object file (represented by a MemoryBuffer instance) by calling 'emit' on the given ObjectLayer. More...
#include "llvm/ExecutionEngine/Orc/Layer.h"
Public Member Functions | |
BasicObjectLayerMaterializationUnit (ObjectLayer &L, std::unique_ptr< MemoryBuffer > O, Interface I) | |
StringRef | getName () const override |
Return the buffer's identifier as the name for this MaterializationUnit. | |
Public Member Functions inherited from llvm::orc::MaterializationUnit | |
MaterializationUnit (Interface I) | |
virtual | ~MaterializationUnit ()=default |
virtual StringRef | getName () const =0 |
Return the name of this materialization unit. | |
const SymbolFlagsMap & | getSymbols () const |
Return the set of symbols that this source provides. | |
const SymbolStringPtr & | getInitializerSymbol () const |
Returns the initialization symbol for this MaterializationUnit (if any). | |
virtual void | materialize (std::unique_ptr< MaterializationResponsibility > R)=0 |
Implementations of this method should materialize all symbols in the materialzation unit, except for those that have been previously discarded. | |
void | doDiscard (const JITDylib &JD, const SymbolStringPtr &Name) |
Called by JITDylibs to notify MaterializationUnits that the given symbol has been overridden. | |
Static Public Member Functions | |
static Expected< std::unique_ptr< BasicObjectLayerMaterializationUnit > > | Create (ObjectLayer &L, std::unique_ptr< MemoryBuffer > O) |
Create using the default object interface builder function. | |
Additional Inherited Members | |
Static Public Attributes inherited from llvm::orc::MaterializationUnit | |
static char | ID |
Protected Attributes inherited from llvm::orc::MaterializationUnit | |
SymbolFlagsMap | SymbolFlags |
SymbolStringPtr | InitSymbol |
Materializes the given object file (represented by a MemoryBuffer instance) by calling 'emit' on the given ObjectLayer.
llvm::orc::BasicObjectLayerMaterializationUnit::BasicObjectLayerMaterializationUnit | ( | ObjectLayer & | L, |
std::unique_ptr< MemoryBuffer > | O, | ||
Interface | I | ||
) |
|
static |
Create using the default object interface builder function.
Definition at line 194 of file Layer.cpp.
References llvm::orc::getObjectFileInterface().
|
overridevirtual |
Return the buffer's identifier as the name for this MaterializationUnit.
Implements llvm::orc::MaterializationUnit.