[llvm-commits] patch: no stubs (to lazy resolver) when jit lazy compilation is disabled

Nick Lewycky nicholas at mxc.ca
Sun Oct 11 11:03:55 PDT 2009

The JIT still produces lazy function resolver stubs even when lazy 
compilation is disabled. It then goes back through and rewrites these 
stubs before considering the compilation completed. This patch changes 
that behaviour to make it compile the function but never create the stub.

This fixes a bug (PR5162) where we would insert a stub in 
FunctionToStubMap as part of the lookup:
   void *&Stub = state.getFunctionToStubMap(locked)[F];
but then never fill in Stub's contents or delete it in 
freeMachineCodeForFunction, thus triggering the AssertingVH.

Please review!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr5162.patch
Type: text/x-patch
Size: 7058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091011/2dabf5ef/attachment.bin>

More information about the llvm-commits mailing list