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

Shuying Liang
2010-11-23T00:50:29Z

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