From 5fb6e6364b6b10e98430140554e644697f29eb06 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 5 May 2011 11:34:15 -0700 Subject: rustc: Add a binding to LLVM's bitcode parser --- 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 5e758bc6..cfa82b03 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -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; -- cgit v1.2.3