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