Hello, Jon> What is the correct way to do this?FunctionType constructor takes extra boolean for marking a varargs function. There is some trick: feed your bytecode to llvm2cpp tool and you'll get C++ source, which will construct the module you provided. From this source you can see, how different things can be created via LLVM API. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
On Monday 26 November 2007 00:34, Anton Korobeynikov wrote:> There is some trick: feed your bytecode to llvm2cpp tool and you'll get > C++ source, which will construct the module you provided. From this > source you can see, how different things can be created via LLVM API.Nice tip, thanks. :-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e