Fix a dead code warning from the new Rust compiler.

On ISAs with no instruction predicates, just emit an unimplemented!()
stub for the check_instp() function. It is unlikely that a finished ISA
will not have any instruction predicates.
This commit is contained in:
Jakob Stoklund Olesen
2017-02-03 11:25:27 -08:00
parent 0ada419fe7
commit 4293bed745
5 changed files with 10 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
//! Encoding tables for ARM32 ISA.
use ir::InstructionData;
use ir::instructions::InstructionFormat;
use ir::types;
use isa::enc_tables::{Level1Entry, Level2Entry};
use isa::constraints::*;

View File

@@ -1,7 +1,6 @@
//! Encoding tables for ARM64 ISA.
use ir::InstructionData;
use ir::instructions::InstructionFormat;
use ir::types;
use isa::enc_tables::{Level1Entry, Level2Entry};
use isa::constraints::*;

View File

@@ -1,7 +1,6 @@
//! Encoding tables for Intel ISAs.
use ir::InstructionData;
use ir::instructions::InstructionFormat;
use ir::types;
use isa::enc_tables::{Level1Entry, Level2Entry};
use isa::constraints::*;

View File

@@ -1,7 +1,6 @@
//! Encoding tables for RISC-V.
use ir::{Opcode, InstructionData};
use ir::instructions::InstructionFormat;
use ir::types;
use predicates;
use isa::enc_tables::{Level1Entry, Level2Entry};