Skip to content

Commit f8e22bf

Browse files
committed
Update Cranelift
1 parent 994b91a commit f8e22bf

File tree

5 files changed

+36
-36
lines changed

5 files changed

+36
-36
lines changed

Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ crate-type = ["dylib"]
1212
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind"] }
1313
cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
1414
cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
15-
cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
15+
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
1616
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
1717
target-lexicon = "0.11.0"
1818
gimli = { version = "0.23.0", default-features = false, features = ["write"]}
@@ -27,15 +27,15 @@ libloading = { version = "0.6.0", optional = true }
2727
#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
2828
#cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
2929
#cranelift-module = { path = "../wasmtime/cranelift/module" }
30-
#cranelift-simplejit = { path = "../wasmtime/cranelift/simplejit" }
30+
#cranelift-jit = { path = "../wasmtime/cranelift/jit" }
3131
#cranelift-object = { path = "../wasmtime/cranelift/object" }
3232

3333
#[patch.crates-io]
3434
#gimli = { path = "../" }
3535

3636
[features]
3737
default = ["jit", "inline_asm"]
38-
jit = ["cranelift-simplejit", "libloading"]
38+
jit = ["cranelift-jit", "libloading"]
3939
inline_asm = []
4040

4141
[profile.dev]

src/debuginfo/emit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl WriterRelocate {
7676
#[cfg(feature = "jit")]
7777
pub(super) fn relocate_for_jit(
7878
mut self,
79-
jit_module: &cranelift_simplejit::SimpleJITModule,
79+
jit_module: &cranelift_jit::JITModule,
8080
) -> Vec<u8> {
8181
use std::convert::TryInto;
8282

src/debuginfo/unwind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl<'tcx> UnwindContext<'tcx> {
8080
#[cfg(feature = "jit")]
8181
pub(crate) unsafe fn register_jit(
8282
self,
83-
jit_module: &cranelift_simplejit::SimpleJITModule,
83+
jit_module: &cranelift_jit::JITModule,
8484
) -> Option<UnwindRegistry> {
8585
let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(super::target_endian(
8686
self.tcx,

src/driver/jit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::os::raw::{c_char, c_int};
77
use rustc_codegen_ssa::CrateInfo;
88
use rustc_middle::mir::mono::MonoItem;
99

10-
use cranelift_simplejit::{SimpleJITBuilder, SimpleJITModule};
10+
use cranelift_jit::{JITBuilder, JITModule};
1111

1212
use crate::prelude::*;
1313

@@ -36,12 +36,12 @@ pub(super) fn run_jit(tcx: TyCtxt<'_>) -> ! {
3636

3737
let imported_symbols = load_imported_symbols_for_jit(tcx);
3838

39-
let mut jit_builder = SimpleJITBuilder::with_isa(
39+
let mut jit_builder = JITBuilder::with_isa(
4040
crate::build_isa(tcx.sess, false),
4141
cranelift_module::default_libcall_names(),
4242
);
4343
jit_builder.symbols(imported_symbols);
44-
let mut jit_module = SimpleJITModule::new(jit_builder);
44+
let mut jit_module = JITModule::new(jit_builder);
4545
assert_eq!(pointer_ty(tcx), jit_module.target_config().pointer_type());
4646

4747
let sig = Signature {

0 commit comments

Comments
 (0)