[LLVMdev] Compiling a Module to ASM
Chris Wailes
chris.wailes at gmail.com
Wed Jun 20 16:06:50 PDT 2012
I'm trying to compile an LLVM Module object to ASM and have been using the
llc.cpp file as a guide. Currently I'm not getting any errors but I AM
getting an empty assembly file. The relevant source code can be found
here:
https://github.com/chriswailes/llvm-ecb/blob/master/src/core/target.cpp
For a bit more context, this code exists in a shared library that provides
additional C bindings for LLVM. These C bindings are then used to make
Ruby bindings, which can be found here: https://github.com/chriswailes/RLTK
An example file that uses this functionality is located here:
https://gist.github.com/2962792
Any help in figuring out why compilation is failing would be very helpful.
- Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120620/f1ff5584/attachment.html>
More information about the llvm-dev
mailing list