Replace MachInst::gen_zero_len_nop with gen_nop(0)

This commit is contained in:
Kasey Carrothers
2021-01-29 01:09:32 -08:00
parent ac60ad6c9a
commit 99be82c866
5 changed files with 7 additions and 16 deletions

View File

@@ -2601,10 +2601,6 @@ impl MachInst for Inst {
}
}
fn gen_zero_len_nop() -> Inst {
Inst::nop(0)
}
fn gen_nop(preferred_size: usize) -> Inst {
Inst::nop(std::cmp::min(preferred_size, 15) as u8)
}