From b547c3d9cff627a68cdecc1b914f7b0fe6db7fbc Mon Sep 17 00:00:00 2001 From: Frederich Munch Date: Tue, 18 Jul 2017 15:50:28 +0000 Subject: [PATCH] Make EHFrames available to sub-classes of RTDyldMemoryManager. 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308321 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/RTDyldMemoryManager.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/ExecutionEngine/RTDyldMemoryManager.h b/include/llvm/ExecutionEngine/RTDyldMemoryManager.h index a9778514b9f..0c1862c5c3e 100644 --- a/include/llvm/ExecutionEngine/RTDyldMemoryManager.h +++ b/include/llvm/ExecutionEngine/RTDyldMemoryManager.h @@ -135,12 +135,13 @@ public: virtual void *getPointerToNamedFunction(const std::string &Name, bool AbortOnFailure = true); -private: +protected: struct EHFrame { uint8_t *Addr; size_t Size; }; - std::vector EHFrames; + typedef std::vector EHFrameInfos; + EHFrameInfos EHFrames; }; // Create wrappers for C Binding types (see CBindingWrapping.h). -- 2.11.0