|
LLVM
3.7.0
|
Object mutating layer. More...
#include <ObjectTransformLayer.h>
Public Types | |
| typedef BaseLayerT::ObjSetHandleT | ObjSetHandleT |
| Handle to a set of added objects. More... | |
Public Member Functions | |
| ObjectTransformLayer (BaseLayerT &BaseLayer, TransformFtor Transform=TransformFtor()) | |
| Construct an ObjectTransformLayer with the given BaseLayer. More... | |
| template<typename ObjSetT , typename MemoryManagerPtrT , typename SymbolResolverPtrT > | |
| ObjSetHandleT | addObjectSet (ObjSetT &Objects, MemoryManagerPtrT MemMgr, SymbolResolverPtrT Resolver) |
| 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... | |
| void | removeObjectSet (ObjSetHandleT H) |
| Remove the object set associated with the handle H. More... | |
| JITSymbol | findSymbol (const std::string &Name, bool ExportedSymbolsOnly) |
| Search for the given named symbol. More... | |
| JITSymbol | findSymbolIn (ObjSetHandleT H, const std::string &Name, bool ExportedSymbolsOnly) |
| Get the address of the given symbol in the context of the set of objects represented by the handle H. More... | |
| void | emitAndFinalize (ObjSetHandleT H) |
| Immediately emit and finalize the object set represented by the given handle. More... | |
| void | mapSectionAddress (ObjSetHandleT H, const void *LocalAddress, TargetAddress TargetAddr) |
| Map section addresses for the objects associated with the handle H. More... | |
| template<typename OwningMBSet > | |
| void | takeOwnershipOfBuffers (ObjSetHandleT H, OwningMBSet MBs) |
| 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 addObjectSet). It immediately applies the user supplied functor to each object, then adds the set of transformed objects to the layer below.
Definition at line 28 of file ObjectTransformLayer.h.
| typedef BaseLayerT::ObjSetHandleT llvm::orc::ObjectTransformLayer< BaseLayerT, TransformFtor >::ObjSetHandleT |
Handle to a set of added objects.
Definition at line 31 of file ObjectTransformLayer.h.
|
inline |
Construct an ObjectTransformLayer with the given BaseLayer.
Definition at line 34 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 45 of file ObjectTransformLayer.h.
References I.
|
inline |
Immediately emit and finalize the object set represented by the given handle.
| H | Handle for object set to emit/finalize. |
Definition at line 82 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 62 of file ObjectTransformLayer.h.
|
inline |
Get the address of the given symbol in the context of the set of objects represented by the handle H.
This call is forwarded to the base layer's implementation.
| H | The handle for 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 74 of file ObjectTransformLayer.h.
|
inline |
Access the transform functor directly.
Definition at line 99 of file ObjectTransformLayer.h.
|
inline |
Access the mumate functor directly.
Definition at line 102 of file ObjectTransformLayer.h.
|
inline |
Map section addresses for the objects associated with the handle H.
Definition at line 85 of file ObjectTransformLayer.h.
|
inline |
Remove the object set associated with the handle H.
Definition at line 56 of file ObjectTransformLayer.h.
|
inline |
Definition at line 94 of file ObjectTransformLayer.h.
1.8.6