[LLVMdev] C++ to C

Chris Lattner
Fri, 17 Nov 2006 19:43:26 -0000

On Fri, 17 Nov 2006, John Criswell wrote:
> I don't think you will need to deal with any names.  The C++ standard
> library has already been compiled to LLVM bytecode (it is part of the
> llvm-gcc/llvm-g++ distribution).  If you use "llvm-g++ -lstdc++"
it
> should link in whatever libstdc++ functions are needed by your program;
> they will get translated to C code along with the rest of your program
> when you use llc.

Note that that only works with llvm-gcc3.  With llvm-gcc4 you need to
compile libstdc++ to bytecode explicitly.

-Chris

--