pass: naive implementation of liveness
This commit is contained in:
@@ -33,7 +33,7 @@ func (b *build) instruction(i inst.Instruction) {
|
||||
// Context method.
|
||||
b.Printf("func (c *Context) %s(%s) {\n", i.Opcode, s.ParameterList())
|
||||
b.Printf("if inst, err := x86.%s(%s); err == nil", i.Opcode, s.Arguments())
|
||||
b.Printf(" { c.Instruction(*inst) }")
|
||||
b.Printf(" { c.Instruction(inst) }")
|
||||
b.Printf(" else { c.AddError(err) }\n")
|
||||
b.Printf("}\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user