machinst x64: remove dead code and allow(dead_code) annotation;

The BranchTarget is always used as a label, so just use a plain
MachLabel in this case.
This commit is contained in:
Benjamin Bouvier
2020-10-07 13:31:29 +02:00
parent e32e6fb612
commit a470f1e0cd
7 changed files with 90 additions and 165 deletions

View File

@@ -276,11 +276,11 @@ impl ABIMachineSpec for X64ABIMachineSpec {
}
fn gen_ret() -> Self::I {
Inst::Ret
Inst::ret()
}
fn gen_epilogue_placeholder() -> Self::I {
Inst::EpiloguePlaceholder
Inst::epilogue_placeholder()
}
fn gen_add_imm(into_reg: Writable<Reg>, from_reg: Reg, imm: u32) -> SmallVec<[Self::I; 4]> {