[LLVMdev] build a function type with char parameter

Anton Korobeynikov anton at korobeynikov.info
Wed Jan 12 00:39:09 PST 2011


> I can use Integer::Type.get() to set the type of a parameter to integer. My
> question is how I can do this for char *?
It depends on your target, but usually char is just i8, thus char* is i8*

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list