[cfe-dev] Missing Visual Studio ABI feature using C++?

John McCall rjmccall at apple.com
Mon Jul 9 10:21:46 PDT 2012


On Jul 7, 2012, at 6:25 PM, Skykill Skyoverside wrote:
> Thank, so from what i'm seeing it isn't going to work until it's fixed... 
> Could i use GCC with LLVM 3.1 to produce the bitcode and use it with the JIT 
> while waiting that bug to be fixed?

AFAIK, GCC also doesn't support targeting the Visual Studio C++ ABI.  And
there's one thing you're doing — passing a non-POD class by value — that
requires LLVM support that doesn't yet exist.

You might have *slightly* better luck if you instead take that by reference,
but probably you'd be better off either (1) changing to a more C-like
interface or (2) figuring out a way to compile part of your host environment
using the Itanium ABI.

John.



More information about the cfe-dev mailing list