about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-05-04 21:27:00 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-05-04 21:27:00 -0700
commit729648282bf31a89cfdb9cbea47806ba4c05a1db (patch)
tree5ab73c3cf2955a7b00789c748f7ec669c2e09d0d /src/comp
parentc47a075a991edbad09bef36a5f7ea041e3e636e2 (diff)
downloadrust-729648282bf31a89cfdb9cbea47806ba4c05a1db.tar.gz
rust-729648282bf31a89cfdb9cbea47806ba4c05a1db.zip
rustllvm: Add bindings to the LLVM linker
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/lib/llvm.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 070174bad3c..5e758bc6676 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -848,7 +848,9 @@ native mod llvm = llvm_lib {
         call. */
     fn LLVMRustGetLastError() -> sbuf;
 
-
+    /** Links LLVM modules together. `Src` is destroyed by this call and
+        must never be referenced again. */
+    fn LLVMLinkModules(ModuleRef Dest, ModuleRef Src) -> Bool;
 }
 
 native mod rustllvm = llvm_lib {