[LLVMdev] how to get a void type value in llvm

Shuying Liang shuying.liang at gmail.com
Mon Nov 22 16:50:29 PST 2010


Hi, I want to insert a function with a void type parameter,
for example: int foo(void);
OI declared
fcall2 = M.getOrInsertFunction("foo",
			    IntegerType::get(M.getContext(), 32),
			    Type::getVoidTy(M.getContext()));

then the question is how to get the void type value to make the
CallInst inserted sucessfully? (what should be ********)
CallInst::Create(fcall2, ******, "", insertPos);


-- 

--Shuying



More information about the llvm-dev mailing list