diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-05-05 11:34:15 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-05-05 11:34:45 -0700 |
| commit | 5fb6e6364b6b10e98430140554e644697f29eb06 (patch) | |
| tree | 3332fcffda123b9c9d02f94d337597cef2b3a610 /src/comp/lib/llvm.rs | |
| parent | 6b742aec91f1c2615ab8e01ba027dfff3008a7f7 (diff) | |
| download | rust-5fb6e6364b6b10e98430140554e644697f29eb06.tar.gz rust-5fb6e6364b6b10e98430140554e644697f29eb06.zip | |
rustc: Add a binding to LLVM's bitcode parser
Diffstat (limited to 'src/comp/lib/llvm.rs')
| -rw-r--r-- | src/comp/lib/llvm.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 5e758bc6676..cfa82b0346d 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; |
