diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-04-15 17:35:46 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-04-15 17:41:14 -0400 |
| commit | 2214b6835d8bf5b33a3fb8b6a897abaea55ef368 (patch) | |
| tree | d6209d2e1dca535f4e0e5225108a6b8cb876c266 /src/comp/lib | |
| parent | rustc: Make fold_ty no longer use an object; introduce walk_ty (diff) | |
| download | rust-2214b6835d8bf5b33a3fb8b6a897abaea55ef368.tar.xz rust-2214b6835d8bf5b33a3fb8b6a897abaea55ef368.zip | |
Add a -S option for producing assembly. I will move more of it to
rust once the necessary APIs are available in C.
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 67703205..8d0910d5 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -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; |