avoid keyword clash by using cons for constants
This commit is contained in:
parent
a2a2231027
commit
0d5fb419e3
4 changed files with 33 additions and 33 deletions
|
@ -4,7 +4,7 @@
|
|||
static void
|
||||
eref(Ref r, Fn *fn, FILE *f)
|
||||
{
|
||||
Const *c;
|
||||
Cons *c;
|
||||
|
||||
switch (rtype(r)) {
|
||||
case RSym:
|
||||
|
@ -14,8 +14,8 @@ eref(Ref r, Fn *fn, FILE *f)
|
|||
case RSlot:
|
||||
fprintf(f, "-%d(%%rbp)", 8 * r.val);
|
||||
break;
|
||||
case RConst:
|
||||
c = &fn->cst[r.val];
|
||||
case RCons:
|
||||
c = &fn->cons[r.val];
|
||||
switch (c->type) {
|
||||
case CAddr:
|
||||
fprintf(f, "$%s", c->label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue