[LLVMdev] LLVM code emittion and C++ compiler compatibily

Chris Lattner sabre at nondot.org
Mon Nov 6 11:12:33 PST 2006


On Mon, 6 Nov 2006, [ISO-8859-2] Žiga Osolin wrote:
> The other thing are the return types. I don't know (it is probably even
> not documented) how VC++ returns smart pointer (boost::smart_ptr),
> or any other type (other basics types, such as int, float, ... are
> probably returned into EAX as with GCC). Once again, we may
> need specific return values per arhitecture.

It is possible, but it would be extremely ugly.  I strongly recommend 
sticking to C features when JITing code.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/


More information about the llvm-dev mailing list