Skip to content

Commit

Permalink
Make EHFrames available to sub-classes of RTDyldMemoryManager.
Browse files Browse the repository at this point in the history
Summary: This information can be useful; and in the case of Win64, necessary for getting exceptions to work in the JIT.

Reviewers: lhames

Reviewed By: lhames

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35102

llvm-svn: 308321
  • Loading branch information
Frederich Munch committed Jul 18, 2017
1 parent 6da7db3 commit 7e925dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/include/llvm/ExecutionEngine/RTDyldMemoryManager.h
Expand Up @@ -135,12 +135,13 @@ class RTDyldMemoryManager : public MCJITMemoryManager,
virtual void *getPointerToNamedFunction(const std::string &Name,
bool AbortOnFailure = true);

private:
protected:
struct EHFrame {
uint8_t *Addr;
size_t Size;
};
std::vector<EHFrame> EHFrames;
typedef std::vector<EHFrame> EHFrameInfos;
EHFrameInfos EHFrames;
};

// Create wrappers for C Binding types (see CBindingWrapping.h).
Expand Down

0 comments on commit 7e925dd

Please sign in to comment.