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:
parent
790084ced1
commit
2214b6835d
5 changed files with 68 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue