rustc: Add a binding to LLVM's bitcode parser

This commit is contained in:
Patrick Walton
2011-05-05 11:34:15 -07:00
parent 6b742aec91
commit 5fb6e6364b
4 changed files with 18 additions and 0 deletions

View File

@@ -848,6 +848,9 @@ native mod llvm = llvm_lib {
call. */
fn LLVMRustGetLastError() -> sbuf;
/** Parses the bitcode in the given memory buffer. */
fn LLVMRustParseBitcode(MemoryBufferRef MemBuf) -> ModuleRef;
/** Links LLVM modules together. `Src` is destroyed by this call and
must never be referenced again. */
fn LLVMLinkModules(ModuleRef Dest, ModuleRef Src) -> Bool;