[llvm] r308321 - Make EHFrames available to sub-classes of RTDyldMemoryManager.

Frederich Munch via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 08:50:28 PDT 2017


Author: marsupial
Date: Tue Jul 18 08:50:28 2017
New Revision: 308321

URL: http://llvm.org/viewvc/llvm-project?rev=308321&view=rev
Log:
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

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/RTDyldMemoryManager.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/RTDyldMemoryManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/RTDyldMemoryManager.h?rev=308321&r1=308320&r2=308321&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/RTDyldMemoryManager.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/RTDyldMemoryManager.h Tue Jul 18 08:50:28 2017
@@ -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<EHFrame> EHFrames;
+  typedef std::vector<EHFrame> EHFrameInfos;
+  EHFrameInfos EHFrames;
 };
 
 // Create wrappers for C Binding types (see CBindingWrapping.h).




More information about the llvm-commits mailing list