LLVM
8.0.1
|
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, VModuleKey K, std::unique_ptr< MemoryBuffer > O, SymbolFlagsMap SymbolFlags) | |
StringRef | getName () const override |
Return the buffer's identifier as the name for this MaterializationUnit. More... | |
Public Member Functions inherited from llvm::orc::MaterializationUnit | |
MaterializationUnit (SymbolFlagsMap InitalSymbolFlags, VModuleKey K) | |
virtual | ~MaterializationUnit () |
const SymbolFlagsMap & | getSymbols () const |
Return the set of symbols that this source provides. More... | |
void | doMaterialize (JITDylib &JD) |
Called by materialization dispatchers (see ExecutionSession::DispatchMaterializationFunction) to trigger materialization of this MaterializationUnit. More... | |
void | doDiscard (const JITDylib &JD, const SymbolStringPtr &Name) |
Called by JITDylibs to notify MaterializationUnits that the given symbol has been overridden. More... | |
Static Public Member Functions | |
static Expected< std::unique_ptr< BasicObjectLayerMaterializationUnit > > | Create (ObjectLayer &L, VModuleKey K, std::unique_ptr< MemoryBuffer > O) |
Additional Inherited Members | |
Protected Attributes inherited from llvm::orc::MaterializationUnit | |
SymbolFlagsMap | SymbolFlags |
VModuleKey | K |
Materializes the given object file (represented by a MemoryBuffer instance) by calling 'emit' on the given ObjectLayer.
llvm::orc::BasicObjectLayerMaterializationUnit::BasicObjectLayerMaterializationUnit | ( | ObjectLayer & | L, |
VModuleKey | K, | ||
std::unique_ptr< MemoryBuffer > | O, | ||
SymbolFlagsMap | SymbolFlags | ||
) |
|
static |
Definition at line 119 of file Layer.cpp.
References llvm::orc::ObjectLayer::getExecutionSession(), and llvm::orc::getObjectSymbolFlags().
Referenced by llvm::orc::ObjectLayer::add().
|
overridevirtual |
Return the buffer's identifier as the name for this MaterializationUnit.
Implements llvm::orc::MaterializationUnit.
Definition at line 138 of file Layer.cpp.
References llvm::orc::ObjectLayer::emit().