Compiling a Module to ASM

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:

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: An example file that uses this functionality is located here:

Any help in figuring out why compilation is failing would be very helpful.

  • Chris