13 #ifndef LLVM_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORT_H 14 #define LLVM_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORT_H 26 size_t EHFrameSectionSize);
30 size_t EHFrameSectionSize);
37 size_t EHFrameSectionSize) = 0;
39 size_t EHFrameSectionSize) = 0;
56 size_t EHFrameSectionSize)
override {
58 jitTargetAddressToPointer<void *>(EHFrameSectionAddr),
63 size_t EHFrameSectionSize)
override {
65 jitTargetAddressToPointer<void *>(EHFrameSectionAddr),
75 size_t EHFrameSectionSize)>;
91 #endif // LLVM_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORT_H Error registerEHFrameSection(const void *EHFrameSectionAddr, size_t EHFrameSectionSize)
Registers all FDEs in the given eh-frame section with the current process.
Registers / Deregisters EH-frames in the current process.
This class represents lattice values for constants.
virtual Error deregisterEHFrames(JITTargetAddress EHFrameSectionAddr, size_t EHFrameSectionSize)=0
std::function< Error(LinkGraph &)> LinkGraphPassFunction
A function for mutating LinkGraphs.
Error registerEHFrames(JITTargetAddress EHFrameSectionAddr, size_t EHFrameSectionSize) override
uint64_t JITTargetAddress
Represents an address in the target process's address space.
std::function< void(JITTargetAddress EHFrameSectionAddr, size_t EHFrameSectionSize)> StoreFrameRangeFunction
Supports registration/deregistration of EH-frames in a target process.
LinkGraphPassFunction createEHFrameRecorderPass(const Triple &TT, StoreFrameRangeFunction StoreFrameRange)
Creates a pass that records the address and size of the EH frame section.
Error deregisterEHFrames(JITTargetAddress EHFrameSectionAddr, size_t EHFrameSectionSize) override
Triple - Helper class for working with autoconf configuration names.
virtual ~EHFrameRegistrar()
virtual Error registerEHFrames(JITTargetAddress EHFrameSectionAddr, size_t EHFrameSectionSize)=0
Error deregisterEHFrameSection(const void *EHFrameSectionAddr, size_t EHFrameSectionSize)
Deregisters all FDEs in the given eh-frame section with the current process.
Lightweight error class with error context and mandatory checking.
print Print MemDeps of function