[LLVMdev] LLVM-C Patch : LLVMConvertModuleToC
Eric Christopher
echristo at apple.com
Fri Sep 17 14:13:45 PDT 2010
On Sep 16, 2010, at 11:58 AM, F van der Meeren wrote:
> I could extract all the functionality into wrapper methods. So that it would be possible to create such a thing in C.
> But without considering the coding standards (it comes directly out of my repository), why would you object against this?
Because nothing else works that way and I don't see expanding the C API to include various bits of random functionality that could be gotten by just wrapping the proper C++ calls.
> It seemed logical to me, to be able to create code in C, and then generate C out of it. This would be useful in things like a new flex/bison.
Ur?
> And combining modules is something that seemed a primitive to me.
Why not just wrap the Linker interface?
-eric
More information about the llvm-dev
mailing list