File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ edition = "2018"
99
1010[dependencies ]
1111peg = " 0.6"
12- cranelift = " 0.78.0 "
13- cranelift-module = " 0.78.0 "
14- cranelift-jit = " 0.78.0 "
12+ cranelift = " 0.85.1 "
13+ cranelift-module = " 0.85.1 "
14+ cranelift-jit = " 0.85.1 "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub struct JIT {
2727impl Default for JIT {
2828 fn default ( ) -> Self {
2929 let builder = JITBuilder :: new ( cranelift_module:: default_libcall_names ( ) ) ;
30- let module = JITModule :: new ( builder) ;
30+ let module = JITModule :: new ( builder. unwrap ( ) ) ;
3131 Self {
3232 builder_context : FunctionBuilderContext :: new ( ) ,
3333 ctx : module. make_context ( ) ,
@@ -66,10 +66,7 @@ impl JIT {
6666 self . module
6767 . define_function (
6868 id,
69- & mut self . ctx ,
70- & mut codegen:: binemit:: NullTrapSink { } ,
71- & mut codegen:: binemit:: NullStackMapSink { } ,
72- )
69+ & mut self . ctx )
7370 . map_err ( |e| e. to_string ( ) ) ?;
7471
7572 // Now that compilation is finished, we can clear out the context state.
You can’t perform that action at this time.
0 commit comments