Have JIT execution take ownership of the LLVMContextRef
Also stop leaking the ExecutionEngine created for jit code by forcibly disposing of it after the JIT code has finished executing
This commit is contained in:
parent
779191cd4b
commit
5c5095d25e
8 changed files with 94 additions and 60 deletions
|
@ -45,6 +45,7 @@
|
|||
#include "llvm/Transforms/Vectorize.h"
|
||||
#include "llvm-c/Core.h"
|
||||
#include "llvm-c/BitReader.h"
|
||||
#include "llvm-c/ExecutionEngine.h"
|
||||
#include "llvm-c/Object.h"
|
||||
|
||||
// Used by RustMCJITMemoryManager::getPointerToNamedFunction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue