llvm-project/llvm/unittests/ExecutionEngine/JIT
Jeffrey Yasskin d0fc8f809a Fix http://llvm.org/PR4822: allow module deletion after a function has been
compiled.

When functions are compiled, they accumulate references in the JITResolver's
stub maps. This patch removes those references when the functions are
destroyed.  It's illegal to destroy a Function when any thread may still try to
call its machine code.

This patch also updates r83987 to use ValueMap instead of explicit CallbackVHs
and fixes a couple "do stuff inside assert()" bugs from r84522.

llvm-svn: 84975
2009-10-23 22:37:43 +00:00
..
JITEventListenerTest.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
JITMemoryManagerTest.cpp Move the Function*->allocated blocks map from the JITMemoryManager to the 2009-10-20 18:13:21 +00:00
JITTest.cpp Fix http://llvm.org/PR4822: allow module deletion after a function has been 2009-10-23 22:37:43 +00:00
Makefile Fix http://llvm.org/PR4822: allow module deletion after a function has been 2009-10-23 22:37:43 +00:00