diff options
| author | Zack Corr <zack@z0w0.me> | 2012-08-29 15:49:35 +1000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-31 16:20:36 -0700 |
| commit | efb576a60dbd12cdd9c732cb5d8b202283b9864a (patch) | |
| tree | 0edac79bfc3b3c8931c5d2d14a71174590513aed /src/rustc/lib/llvm.rs | |
| parent | e27b8f7f02a6d9f963aae5823bbe07a962c04e33 (diff) | |
jit: Clean rustllvm code, let rustc expose __morestack instead of linking in libmorestack and return _rust_main and call it from rustc
Diffstat (limited to 'src/rustc/lib/llvm.rs')
| -rw-r--r-- | src/rustc/lib/llvm.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rustc/lib/llvm.rs b/src/rustc/lib/llvm.rs index f325b3a3d03..ddce3c9640e 100644 --- a/src/rustc/lib/llvm.rs +++ b/src/rustc/lib/llvm.rs @@ -990,10 +990,11 @@ extern mod llvm { fn LLVMRustLoadLibrary(Filename: *c_char) -> bool; /** Create and execute the JIT engine. */ - fn LLVMRustJIT(PM: PassManagerRef, + fn LLVMRustJIT(__morestack: *(), + PM: PassManagerRef, M: ModuleRef, OptLevel: c_int, - EnableSegmentedStacks: bool) -> bool; + EnableSegmentedStacks: bool) -> *(); /** Parses the bitcode in the given memory buffer. */ fn LLVMRustParseBitcode(MemBuf: MemoryBufferRef) -> ModuleRef; |
