Fix warnings
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
//! The legalizer does not deal with register allocation constraints. These constraints are derived
|
//! The legalizer does not deal with register allocation constraints. These constraints are derived
|
||||||
//! from the encoding recipes, and solved later by the register allocator.
|
//! from the encoding recipes, and solved later by the register allocator.
|
||||||
|
|
||||||
|
#[cfg(any(feature = "x86", feature = "riscv"))]
|
||||||
use crate::bitset::BitSet;
|
use crate::bitset::BitSet;
|
||||||
use crate::cursor::{Cursor, FuncCursor};
|
use crate::cursor::{Cursor, FuncCursor};
|
||||||
use crate::flowgraph::ControlFlowGraph;
|
use crate::flowgraph::ControlFlowGraph;
|
||||||
@@ -20,19 +21,9 @@ use crate::ir::types::{I32, I64};
|
|||||||
use crate::ir::{self, InstBuilder, MemFlags};
|
use crate::ir::{self, InstBuilder, MemFlags};
|
||||||
use crate::isa::TargetIsa;
|
use crate::isa::TargetIsa;
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(feature = "x86", feature = "riscv"))]
|
||||||
feature = "x86",
|
|
||||||
feature = "arm32",
|
|
||||||
feature = "arm64",
|
|
||||||
feature = "riscv"
|
|
||||||
))]
|
|
||||||
use crate::predicates;
|
use crate::predicates;
|
||||||
#[cfg(any(
|
#[cfg(any(feature = "x86", feature = "riscv"))]
|
||||||
feature = "x86",
|
|
||||||
feature = "arm32",
|
|
||||||
feature = "arm64",
|
|
||||||
feature = "riscv"
|
|
||||||
))]
|
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
|
|
||||||
use crate::timing;
|
use crate::timing;
|
||||||
@@ -46,6 +37,7 @@ mod libcall;
|
|||||||
mod split;
|
mod split;
|
||||||
mod table;
|
mod table;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "x86", feature = "riscv"))]
|
||||||
use self::call::expand_call;
|
use self::call::expand_call;
|
||||||
use self::globalvalue::expand_global_value;
|
use self::globalvalue::expand_global_value;
|
||||||
use self::heap::expand_heap_addr;
|
use self::heap::expand_heap_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user