[LLVMdev] How to use EE->runFunction for a function with StructRet set?

Chris Lattner clattner at apple.com
Sat Nov 15 09:03:41 PST 2008

On Nov 15, 2008, at 8:32 AM, David Eriksson wrote:

> Hi,
> I'm using LLVM 2.4 (but llvm-gcc 2.2) on Ubuntu 8.10 (Intrepid Ibex)  
> for
> a small part-time project combining Witty (http://www.webtoolkit.eu)  
> and
> the ExecutionEngine in LLVM. (This is my second week with any of these
> so I still lack a lot of basic knowledge.)

I'd strongly recommend using EE->getPointerToFunction() and casting it  
to the right function pointer type.  "runFunction" is really only  
useful if you're using the LLVM IR interpreter, and it is pretty  
broken right now.


More information about the llvm-dev mailing list