[LLVMdev] Recursive Types using the llvm support library
John Carrino
jacarrin at uiuc.edu
Mon Mar 7 18:20:03 PST 2005
As far as I can tell, when you construct a type using the support
library StructType::get, you have to pass in a list of types. How can
you make a Recursive type by passing in a pointer to the type you are
constucting.
An example where something really simple like the line below was output
would be perfect.
%struct.linked_list = type { %struct.linked_list*, %sbyte* }
Thanks for any help,
John
More information about the llvm-dev
mailing list