pass: naive implementation of liveness

This commit is contained in:
Michael McLoughlin
2018-12-02 23:59:29 -08:00
parent 7d4e18f4f4
commit b52c67f3fb
8 changed files with 1093 additions and 1000 deletions

View File

@@ -73,7 +73,7 @@ func (p *GoPrinter) function(f *Function) {
for _, node := range f.Nodes {
switch n := node.(type) {
case Instruction:
case *Instruction:
p.printf("\t%s\t%s\n", n.Opcode, joinOperands(n.Operands))
case Label:
p.printf("%s:\n", n)