Skip to content

Commit

Permalink
Remove packed_struct dependency; closes bytecodealliance#1271 and byt…
Browse files Browse the repository at this point in the history
  • Loading branch information
abrown committed Dec 13, 2019
1 parent 8c2a884 commit ec787eb
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 92 deletions.
2 changes: 1 addition & 1 deletion cranelift-codegen/meta/src/isa/x86/recipes.rs
Expand Up @@ -100,7 +100,7 @@ impl<'builder> RecipeGroup<'builder> {
/// Given a sequence of opcode bytes, compute the recipe name prefix and encoding bits.
fn decode_opcodes(op_bytes: &[u8], rrr: u16, w: u16) -> (&'static str, u16) {
let enc = EncodingBits::new(op_bytes, rrr, w);
(enc.prefix.recipe_name_prefix(), enc.bits())
(enc.prefix().recipe_name_prefix(), enc.bits())
}

/// Given a snippet of Rust code (or None), replace the `PUT_OP` macro with the
Expand Down
4 changes: 1 addition & 3 deletions cranelift-codegen/shared/Cargo.toml
Expand Up @@ -8,6 +8,4 @@ repository = "https://github.com/bytecodealliance/cranelift"
readme = "README.md"
edition = "2018"

[dependencies]
packed_struct = "0.3"
packed_struct_codegen = "0.3"
# Since this is a shared dependency of several packages, please strive to keep this dependency-free.

0 comments on commit ec787eb

Please sign in to comment.