Skip to content

Commit 72992c4

Browse files
committed
Update to Cranelift 0.88.0
1 parent 7dccb51 commit 72992c4

File tree

4 files changed

+47
-31
lines changed

4 files changed

+47
-31
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ crate-type = ["dylib"]
88

99
[dependencies]
1010
# These have to be in sync with each other
11-
cranelift-codegen = { version = "0.87.0", features = ["unwind", "all-arch"] }
12-
cranelift-frontend = "0.87.0"
13-
cranelift-module = "0.87.0"
14-
cranelift-native = "0.87.0"
15-
cranelift-jit = { version = "0.87.0", optional = true }
16-
cranelift-object = "0.87.0"
11+
cranelift-codegen = { version = "0.88.0", features = ["unwind", "all-arch"] }
12+
cranelift-frontend = "0.88.0"
13+
cranelift-module = "0.88.0"
14+
cranelift-native = "0.88.0"
15+
cranelift-jit = { version = "0.88.0", optional = true }
16+
cranelift-object = "0.88.0"
1717
target-lexicon = "0.12.0"
1818
gimli = { version = "0.26.0", default-features = false, features = ["write"]}
1919
object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }

src/base.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use rustc_middle::ty::adjustment::PointerCast;
66
use rustc_middle::ty::layout::FnAbiOf;
77
use rustc_middle::ty::print::with_no_trimmed_paths;
88

9+
use cranelift_codegen::ir::UserFuncName;
10+
911
use crate::constant::ConstantCx;
1012
use crate::debuginfo::FunctionDebugContext;
1113
use crate::prelude::*;
@@ -64,7 +66,7 @@ pub(crate) fn codegen_fn<'tcx>(
6466
let mut func_ctx = FunctionBuilderContext::new();
6567
let mut func = cached_func;
6668
func.clear();
67-
func.name = ExternalName::user(0, func_id.as_u32());
69+
func.name = UserFuncName::user(0, func_id.as_u32());
6870
func.signature = sig;
6971
func.collect_debug_info();
7072

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ mod prelude {
9696
pub(crate) use cranelift_codegen::ir::function::Function;
9797
pub(crate) use cranelift_codegen::ir::types;
9898
pub(crate) use cranelift_codegen::ir::{
99-
AbiParam, Block, ExternalName, FuncRef, Inst, InstBuilder, MemFlags, Signature, SourceLoc,
100-
StackSlot, StackSlotData, StackSlotKind, TrapCode, Type, Value,
99+
AbiParam, Block, FuncRef, Inst, InstBuilder, MemFlags, Signature, SourceLoc, StackSlot,
100+
StackSlotData, StackSlotKind, TrapCode, Type, Value,
101101
};
102102
pub(crate) use cranelift_codegen::isa::{self, CallConv};
103103
pub(crate) use cranelift_codegen::Context;

0 commit comments

Comments
 (0)