LLVM
8.0.1
|
Object mutating layer. More...
#include "llvm/ExecutionEngine/Orc/ObjectTransformLayer.h"
Public Member Functions | |
LegacyObjectTransformLayer (BaseLayerT &BaseLayer, TransformFtor Transform=TransformFtor()) | |
Construct an ObjectTransformLayer with the given BaseLayer. More... | |
template<typename ObjectPtr > | |
Error | addObject (VModuleKey K, ObjectPtr Obj) |
Apply the transform functor to each object in the object set, then add the resulting set of objects to the base layer, along with the memory manager and symbol resolver. More... | |
Error | removeObject (VModuleKey K) |
Remove the object set associated with the VModuleKey K. More... | |
JITSymbol | findSymbol (const std::string &Name, bool ExportedSymbolsOnly) |
Search for the given named symbol. More... | |
JITSymbol | findSymbolIn (VModuleKey K, const std::string &Name, bool ExportedSymbolsOnly) |
Get the address of the given symbol in the context of the set of objects represented by the VModuleKey K. More... | |
Error | emitAndFinalize (VModuleKey K) |
Immediately emit and finalize the object set represented by the given VModuleKey K. More... | |
void | mapSectionAddress (VModuleKey K, const void *LocalAddress, JITTargetAddress TargetAddr) |
Map section addresses for the objects associated with the VModuleKey K. More... | |
TransformFtor & | getTransform () |
Access the transform functor directly. More... | |
const TransformFtor & | getTransform () const |
Access the mumate functor directly. More... | |
Object mutating layer.
This layer accepts sets of ObjectFiles (via addObject). It immediately applies the user supplied functor to each object, then adds the set of transformed objects to the layer below.
Definition at line 49 of file ObjectTransformLayer.h.
|
inline |
Construct an ObjectTransformLayer with the given BaseLayer.
Definition at line 52 of file ObjectTransformLayer.h.
|
inline |
Apply the transform functor to each object in the object set, then add the resulting set of objects to the base layer, along with the memory manager and symbol resolver.
Definition at line 61 of file ObjectTransformLayer.h.
|
inline |
Immediately emit and finalize the object set represented by the given VModuleKey K.
Definition at line 91 of file ObjectTransformLayer.h.
|
inline |
Search for the given named symbol.
Name | The name of the symbol to search for. |
ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 72 of file ObjectTransformLayer.h.
|
inline |
Get the address of the given symbol in the context of the set of objects represented by the VModuleKey K.
This call is forwarded to the base layer's implementation.
K | The VModuleKey associated with the object set to search in. |
Name | The name of the symbol to search for. |
ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 84 of file ObjectTransformLayer.h.
|
inline |
Access the transform functor directly.
Definition at line 101 of file ObjectTransformLayer.h.
|
inline |
Access the mumate functor directly.
Definition at line 104 of file ObjectTransformLayer.h.
|
inline |
Map section addresses for the objects associated with the VModuleKey K.
Definition at line 95 of file ObjectTransformLayer.h.
|
inline |
Remove the object set associated with the VModuleKey K.
Definition at line 66 of file ObjectTransformLayer.h.