about summary refs log tree commit diff
path: root/src/comp/lib/llvm.rs
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-04-15 17:35:46 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-04-15 17:41:14 -0400
commit2214b6835d8bf5b33a3fb8b6a897abaea55ef368 (patch)
treed6209d2e1dca535f4e0e5225108a6b8cb876c266 /src/comp/lib/llvm.rs
parent790084ced18ca391c30d8e1045c04cbf2111499e (diff)
downloadrust-2214b6835d8bf5b33a3fb8b6a897abaea55ef368.tar.gz
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/llvm.rs')
-rw-r--r--src/comp/lib/llvm.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 6770320598a..8d0910d54d9 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;