[LLVMdev] MallocInst/CallInst bitcast,

Daniel Waterworth da.waterworth at googlemail.com
Fri Oct 16 02:40:14 PDT 2009


Hello,

I'm writing a virtual machine that functions as a sandbox based on llvm. In
order to prevent programs from accessing memory that has not been allocated
to them, I want to replace calls to malloc and free with calls to a logged
functions that will record the memory that is being allocated to the
program. Is it possible to cast/convert a MallocInst or FreeInst to a
CallInst?

Thanks,

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091016/793e9d36/attachment.html>


More information about the llvm-dev mailing list