From 5096d7cf92c768a7e17e1d88241f610117915fab Mon Sep 17 00:00:00 2001 From: Johnnie Birch <45402135+jlb6740@users.noreply.github.com> Date: Mon, 30 Sep 2019 13:31:51 -0700 Subject: [PATCH] Updates Cranelift Codegen dependence to 0.44 In trying to build the lightbeam feature in wasmtime there are compile errors mostly related to outdated or missing trait definitions. This patch moves the current cranelift codegen dependence to 0.44 in support of that, though other changes are still needed in wasmtime to get the feature to build. --- Cargo.toml | 2 +- src/translate_sections.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9c7ebe4769..329ed4867c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ itertools = "0.8" capstone = "0.5.0" failure = "0.1.3" failure_derive = "0.1.3" -cranelift-codegen = "0.33" +cranelift-codegen = "0.44" multi_mut = "0.1" either = "1.5" wabt = "0.7" diff --git a/src/translate_sections.rs b/src/translate_sections.rs index 50df881195..3c446e7f91 100644 --- a/src/translate_sections.rs +++ b/src/translate_sections.rs @@ -94,6 +94,10 @@ impl binemit::RelocSink for UnimplementedRelocSink { unimplemented!() } + fn reloc_constant(&mut self, _: binemit::CodeOffset, _: binemit::Reloc, _: ir::ConstantOffset) { + unimplemented!() + } + fn reloc_jt(&mut self, _: binemit::CodeOffset, _: binemit::Reloc, _: ir::JumpTable) { unimplemented!() }