[PATCH] D35102: Make EHFrames available to sub-classes of RTDyldMemoryManager.

Frederich Munch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 21:06:26 PDT 2017


marsupial created this revision.

This information can be useful; and in the case of Win64, necessary for getting exceptions to work in the JIT.


https://reviews.llvm.org/D35102

Files:
  include/llvm/ExecutionEngine/RTDyldMemoryManager.h


Index: include/llvm/ExecutionEngine/RTDyldMemoryManager.h
===================================================================
--- include/llvm/ExecutionEngine/RTDyldMemoryManager.h
+++ include/llvm/ExecutionEngine/RTDyldMemoryManager.h
@@ -135,12 +135,13 @@
   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).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35102.105581.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170707/9ad58483/attachment.bin>


More information about the llvm-commits mailing list