replace RMem refs with an OAddr opertation

This commit is contained in:
Quentin Carbonneaux 2015-08-16 12:12:19 -04:00
parent 16fe5c1366
commit ca8c320dec
4 changed files with 10 additions and 15 deletions

View file

@ -35,6 +35,7 @@ OpDesc opdesc[NOp] = {
[OXCmpl] = { "xcmpl", 2, 1 },
[OXTestw] = { "xtestw", 2, 1 },
[OXTestl] = { "xtestl", 2, 1 },
[OAddr] = { "addr", 1, 0 },
[OAlloc] = { "alloc4", 1, 1 },
[OAlloc+1] = { "alloc8", 1, 1 },
[OAlloc+2] = { "alloc16", 1, 1 },
@ -565,9 +566,6 @@ printref(Ref r, Fn *fn, FILE *f)
case RSlot:
fprintf(f, "S%d", r.val);
break;
case RMem:
fprintf(f, "M%d", r.val);
break;
}
return "";
}