Skip to content

Commit fa6e528

Browse files
committed
Fix warnings
1 parent 1415dd8 commit fa6e528

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

  • cranelift/codegen/src/legalizer

cranelift/codegen/src/legalizer/mod.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,17 @@
1313
//! The legalizer does not deal with register allocation constraints. These constraints are derived
1414
//! from the encoding recipes, and solved later by the register allocator.
1515
16+
#[cfg(any(feature = "x86", feature = "riscv"))]
1617
use crate::bitset::BitSet;
1718
use crate::cursor::{Cursor, FuncCursor};
1819
use crate::flowgraph::ControlFlowGraph;
1920
use crate::ir::types::{I32, I64};
2021
use crate::ir::{self, InstBuilder, MemFlags};
2122
use crate::isa::TargetIsa;
2223

23-
#[cfg(any(
24-
feature = "x86",
25-
feature = "arm32",
26-
feature = "arm64",
27-
feature = "riscv"
28-
))]
24+
#[cfg(any(feature = "x86", feature = "riscv"))]
2925
use crate::predicates;
30-
#[cfg(any(
31-
feature = "x86",
32-
feature = "arm32",
33-
feature = "arm64",
34-
feature = "riscv"
35-
))]
26+
#[cfg(any(feature = "x86", feature = "riscv"))]
3627
use alloc::vec::Vec;
3728

3829
use crate::timing;
@@ -46,6 +37,7 @@ mod libcall;
4637
mod split;
4738
mod table;
4839

40+
#[cfg(any(feature = "x86", feature = "riscv"))]
4941
use self::call::expand_call;
5042
use self::globalvalue::expand_global_value;
5143
use self::heap::expand_heap_addr;

0 commit comments

Comments
 (0)