Uses clang to turn a C++ String into an LLVM IR Modules

In my C program, I want to storing a C++ String in memory and, using clang libraries, turn to LLVM IR (in memory too). I was looking for libclang and the others clang files, and I not found information about that. Do I have to call all functions of front-end for this? What is the simplest way to do it?

Thanks in advance

Maxiwell

In my C program, I want to storing a C++ String in memory and, using clang libraries, turn to LLVM IR (in memory too). I was looking for libclang and the others clang files, and I not found information about that. Do I have to call all functions of front-end for this? What is the simplest way to do it?

Thanks in advance

Maxiwell