[PATCH] D26216: [MCJIT] Remove eventListeners when MCJIT is destructed

Anna Thomas via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 05:11:22 PDT 2016


anna updated this revision to Diff 76693.
anna added a comment.

Updated based on comments above. We can avoid freeing the Archive in the MCJIT destructor.


https://reviews.llvm.org/D26216

Files:
  lib/ExecutionEngine/MCJIT/MCJIT.cpp


Index: lib/ExecutionEngine/MCJIT/MCJIT.cpp
===================================================================
--- lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -99,7 +99,6 @@
     if (Obj)
       NotifyFreeingObject(*Obj);
 
-  Archives.clear();
 }
 
 void MCJIT::addModule(std::unique_ptr<Module> M) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26216.76693.patch
Type: text/x-patch
Size: 337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161102/cd08605b/attachment.bin>


More information about the llvm-commits mailing list