From 2214b6835d8bf5b33a3fb8b6a897abaea55ef368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Fri, 15 Apr 2011 17:35:46 -0400 Subject: Add a -S option for producing assembly. I will move more of it to rust once the necessary APIs are available in C. --- src/comp/lib/llvm.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/comp/lib') 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; -- cgit v1.2.3