[LLVMdev] Structure declaration with IR builder

Rick Mann rmann at latencyzero.com
Thu Jan 31 01:21:15 PST 2013


On Jan 30, 2013, at 23:48 , Manuele Conti <manuele.conti at sirius-es.it> wrote:

> I tryed to create a global structured derived declaration in my compiler by:
> StructType *st = StructType(getGlobalContext(),  elements, false);
> 
> In dump module i didn't find any code needed to declare a new user data type.
> 
> Is there a instruction to add this class into current module?

It doesn't seem to show up until it's referred to by something else.


-- 
Rick







More information about the llvm-dev mailing list