[LLVMdev] Inserting a varargs function declaration with getOrInsertFunction()?

Patrick Alexander Simmons simmon12 at cs.uiuc.edu
Fri Apr 23 16:42:52 PDT 2010


I need to insert a varargs function declaration from within an LLVM 
pass.  getOrInsertFunction() allows an arbitrary list of type parameters 
for function arguments to be passed in, but as far as I can tell there 
is no LLVM "type" to represent the variable-length portion of a function 
argument list.  How is this normally done?

--Patrick



More information about the llvm-dev mailing list