about summary refs log tree commit diff
path: root/src/rustc/lib
diff options
context:
space:
mode:
authorZack Corr <zack@z0w0.me>2012-08-25 14:54:30 +1000
committerBrian Anderson <banderson@mozilla.com>2012-08-31 16:20:35 -0700
commitd7aa9918ef1673edcef261da41075203de5b15b3 (patch)
tree7dc7164676cbbf0cd18a56c6e67ad3bfebd2a7d7 /src/rustc/lib
parent97bb812238b859db453cf935373f32ff2afa7887 (diff)
Add experimental JIT compiler
Diffstat (limited to 'src/rustc/lib')
-rw-r--r--src/rustc/lib/llvm.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rustc/lib/llvm.rs b/src/rustc/lib/llvm.rs
index 1440a654a89..5c8bab166ec 100644
--- a/src/rustc/lib/llvm.rs
+++ b/src/rustc/lib/llvm.rs
@@ -986,6 +986,12 @@ extern mod llvm {
         call. */
     fn LLVMRustGetLastError() -> *c_char;
 
+    /** JIT the module. **/
+    fn LLVMRustJIT(PM: PassManagerRef,
+                   M: ModuleRef,
+                   OptLevel: c_int,
+                   EnableSegmentedStacks: bool) -> bool;
+
     /** Parses the bitcode in the given memory buffer. */
     fn LLVMRustParseBitcode(MemBuf: MemoryBufferRef) -> ModuleRef;