[LLVMdev] Create ObjectFile with C bindings
gtsiour at softlab.ntua.gr
Tue Feb 7 03:26:03 PST 2012
I've been studying the LLVM C bindings (include/llvm-c/) and it 's not
very clear to me how I could create an ELF object file with them.
Function "LLVMCreateObjectFile" (in Object.h) needs an
"LLVMMemoryBufferRef" object but I'm not sure how I should create one
using the created "LLVMModuleRef".
The reason why I want to use the C bindings and not the C++ interface
is because I use them through some Erlang NIFs . I apologize if it's
something obvious that I'm missing!
Software Engineering Laboratory,
National Technical University of Athens
More information about the llvm-dev