1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:21:21 -06:00

minor comment and debug flag for dumping all oplooks.

R=rsc
APPROVED=rsc
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=31016
CL=31126
This commit is contained in:
Kai Backman 2009-07-02 21:35:39 -07:00
parent 29aa3ffbf6
commit 84ef63b9d5
2 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@
Optab optab[] =
{
/* Data layout:
OPCODE, from, prog->reg, to, magic numbers? */
/* struct Optab:
OPCODE, from, prog->reg, to, type,size,param,flag */
{ ATEXT, C_LEXT, C_NONE, C_LCON, 0, 0, 0 },
{ ATEXT, C_LEXT, C_REG, C_LCON, 0, 0, 0 },
{ ATEXT, C_ADDR, C_NONE, C_LCON, 0, 0, 0 },

View File

@ -849,8 +849,8 @@ oplook(Prog *p)
}
o = orange[r].stop; /* just generate an error */
}
if(0) {
print("oplook %A %d %d %d\n",
if(debug['O']) {
print("oplook %A %O %O %O\n",
(int)p->as, a1, a2, a3);
print(" %d %d\n", p->from.type, p->to.type);
}