[LLVMdev] how to get TargetData?

Victor Zverovich victor.zverovich at googlemail.com
Fri May 28 08:27:47 PDT 2010


Dear all

I am trying to get the size of an LLVM pointer type.
getPrimitiveSizeInBits() returns 0 for it and the documentation for
isSized() suggest to use TargetData.
I figured out from Kaleidoscope example that one can get a pointer to
TagetData object through the execution engine but it seems to be an
overkill.
What is the right way to do it?

Best regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100528/495267e7/attachment.html>


More information about the llvm-dev mailing list