From f12998e5d7a4409d2bf748a671c345a79085213e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 18 Apr 2011 10:02:34 -0400 Subject: Add a -c option. --- src/comp/lib/llvm.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/comp/lib') diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 8d0910d5..3c40a583 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -815,8 +815,10 @@ native mod llvm = llvm_lib { fn LLVMRustCreateMemoryBufferWithContentsOfFile(sbuf Path) -> MemoryBufferRef; - fn LLVMRustWriteAssembly(PassManagerRef PM, ModuleRef M, - sbuf Triple, sbuf Output); + /* FIXME: The FileType is an enum.*/ + fn LLVMRustWriteOutputFile(PassManagerRef PM, ModuleRef M, + sbuf Triple, sbuf Output, + int FileType); /** Returns a string describing the last error caused by an LLVMRust* call. */ -- cgit v1.2.3