Remove imm_with_name

It is only used once to rename an imm field to mask
This commit is contained in:
bjorn3
2021-10-31 18:48:07 +01:00
parent 74261ccd79
commit 2fbd57e9e2
5 changed files with 6 additions and 15 deletions

View File

@@ -122,15 +122,6 @@ impl InstructionFormatBuilder {
self
}
pub fn imm_with_name(mut self, member: &'static str, operand_kind: &OperandKind) -> Self {
let field = FormatField {
kind: operand_kind.clone(),
member,
};
self.imm_fields.push(field);
self
}
pub fn typevar_operand(mut self, operand_index: usize) -> Self {
assert!(self.typevar_operand.is_none());
assert!(operand_index < self.num_value_operands);