|
LLVM
7.0.0
|
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) | |
| The MemoryBuffer should represent a valid object file. More... | |
Public Member Functions inherited from llvm::orc::MaterializationUnit | |
| MaterializationUnit (SymbolFlagsMap InitalSymbolFlags) | |
| virtual | ~MaterializationUnit () |
| const SymbolFlagsMap & | getSymbols () const |
| Return the set of symbols that this source provides. More... | |
| void | doMaterialize (VSO &V) |
| Called by materialization dispatchers (see ExecutionSession::DispatchMaterializationFunction) to trigger materialization of this MaterializationUnit. More... | |
| void | doDiscard (const VSO &V, SymbolStringPtr Name) |
| Called by VSOs to notify MaterializationUnits that the given symbol has been overridden. More... | |
Additional Inherited Members | |
Protected Attributes inherited from llvm::orc::MaterializationUnit | |
| SymbolFlagsMap | SymbolFlags |
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 | ||
| ) |
The MemoryBuffer should represent a valid object file.
If there is any chance that the file is invalid it should be validated prior to constructing a BasicObjectLayerMaterializationUnit.
Definition at line 75 of file Layer.cpp.
References llvm::cantFail(), llvm::object::ObjectFile::createObjectFile(), llvm::orc::ObjectLayer::emit(), llvm::JITSymbolFlags::fromObjectSymbol(), llvm::orc::ObjectLayer::getExecutionSession(), llvm::object::BasicSymbolRef::SF_Exported, llvm::object::BasicSymbolRef::SF_Undefined, and llvm::orc::MaterializationUnit::SymbolFlags.
1.8.13