When allocating stubs, keep track of which Functions are referencing the stub.
authorNate Begeman <natebegeman@mac.com>
Thu, 5 Mar 2009 06:34:37 +0000 (06:34 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 5 Mar 2009 06:34:37 +0000 (06:34 +0000)
commit50cd6fda9e98f68a9a6e1adf72c38baf614bd305
treeb71028f26c448a9ce7ecf38590518c9feb4aed56
parent6fb8f421eef59c454dba3688aade34ca1401dff2
When allocating stubs, keep track of which Functions are referencing the stub.
This invalidates the stubs in the resolver map when they are no longer referenced,
and should the JIT memory manager ever pick up a deallocateStub interface, the
JIT could reclaim the memory for unused stubs as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66141 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JIT/JITEmitter.cpp