[meta] Delegate finding the default value to OperandKind instead of its builder.

This applies both to the default_member value (which is now determined at
runtime, instead of pre-computed) and the rust_type value (which is
determined in the Operand's ctor, instead of the builder).
This commit is contained in:
Benjamin Bouvier
2019-10-29 15:18:45 +01:00
parent 4632d35196
commit ae3ea47dbd
3 changed files with 67 additions and 61 deletions

View File

@@ -95,7 +95,7 @@ impl EncodingBuilder {
&inst.inst.format,
immediate_operand
.kind
.default_member
.default_member()
.expect("Immediates must always have a default member name set."),
immediate_value.to_string(),
);