Add a -S option for producing assembly. I will move more of it to

rust once the necessary APIs are available in C.
This commit is contained in:
Rafael Ávila de Espíndola 2011-04-15 17:35:46 -04:00
parent 790084ced1
commit 2214b6835d
5 changed files with 68 additions and 20 deletions

View file

@ -815,6 +815,9 @@ native mod llvm = llvm_lib {
fn LLVMRustCreateMemoryBufferWithContentsOfFile(sbuf Path) ->
MemoryBufferRef;
fn LLVMRustWriteAssembly(PassManagerRef PM, ModuleRef M,
sbuf Triple, sbuf Output);
/** Returns a string describing the last error caused by an LLVMRust*
call. */
fn LLVMRustGetLastError() -> sbuf;