[LLVMdev] build a function type with char parameter

Bob WM wubousc at gmail.com
Wed Jan 12 08:46:31 PST 2011


How should I create the parameter and pass it to CallInst::Create then?

Thanks,
Bo


Anton Korobeynikov-2 wrote:
> 
>> 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
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> 

-- 
View this message in context: http://old.nabble.com/build-a-function-type-with-char-parameter-tp30650603p30654341.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list