1
Fork 0

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:
Alex Crichton 2013-05-17 19:44:50 -04:00
parent 779191cd4b
commit 5c5095d25e
8 changed files with 94 additions and 60 deletions

View file

@ -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()