operand: remove TODO about deleting Imm()

Starting to think this function could have its place.

Updates #18
This commit is contained in:
Michael McLoughlin
2019-01-07 22:32:55 -08:00
parent 0a3dff4d5a
commit de9c629bcb

View File

@@ -24,7 +24,6 @@ func (s String) constant() {}
// Imm returns an unsigned integer constant with size guessed from x. // Imm returns an unsigned integer constant with size guessed from x.
func Imm(x uint64) Constant { func Imm(x uint64) Constant {
// TODO(mbm): remove this function
switch { switch {
case uint64(uint8(x)) == x: case uint64(uint8(x)) == x:
return U8(x) return U8(x)