Issues in converting C++ code to C using llvm and llc

Hello All,

I came to know from a friend that using LLVM insfrastucture one can convert C++ programs to C. I needed this for my cross-compiler because we don’t have support for C++ compilation in our cross-compiler.

I tried following:
http://llvm.org/docs/FAQ.html#translatecxx

While I can generate .bc its llc which gives error. Then I also tried “clang” as oppose to llvm-g++.

Here is what I want to accomplish: I have a simple c++ prog which I want to convert to c using llvm

Hi Raj,

I came to know from a friend that using LLVM insfrastucture one can convert C++
programs to C. I needed this for my cross-compiler because we don't have support
for C++ compilation in our cross-compiler.

as described in the release notes, the C backend is deprecated and in any case
doesn't work properly.

Ciao, Duncan.