summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-08-07 22:50:53 -0400
committerOri Bernstein <ori@eigenstate.org>2012-08-07 22:50:53 -0400
commit38f794994e2b62efdbaebabf18eb0cee84390a2f (patch)
tree91b160c093d5bfb518abbfc1ac5aa45e0a731798 /6
parentda7a658feb3f1d785fc557747baf9557c7926520 (diff)
downloadmc-38f794994e2b62efdbaebabf18eb0cee84390a2f.tar.gz
Rename type names.
Tyname -> Tyunres (unresolved types) Tyalias -> Tyname (named types)
Diffstat (limited to '6')
-rw-r--r--6/simp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/6/simp.c b/6/simp.c
index 1d06243..a1af977 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -257,7 +257,7 @@ size_t tysize(Type *t)
case Tyslice:
return 2*Ptrsz; /* len; ptr */
- case Tyalias:
+ case Tyname:
return tysize(t->sub[0]);
case Tyarray:
assert(exprop(t->asize) == Olit);
@@ -279,7 +279,7 @@ size_t tysize(Type *t)
sz = max(sz, tysize(t->udecls[i]->etype) + Ptrsz);
return align(sz, Ptrsz);
break;
- case Tybad: case Tyvar: case Typaram: case Tyname: case Ntypes:
+ case Tybad: case Tyvar: case Typaram: case Tyunres: case Ntypes:
die("Type %s does not have size; why did it get down to here?", tystr(t));
break;
}
@@ -456,7 +456,7 @@ static Node *ucompare(Simp *s, Node *a, Node *b, Type *t, size_t off)
r = NULL;
switch (t->type) {
case Tyvoid: case Tybad: case Tyvalist: case Tyvar:
- case Typaram: case Tyname: case Tyalias: case Ntypes:
+ case Typaram: case Tyunres: case Tyname: case Ntypes:
case Tyint64: case Tyuint64: case Tylong: case Tyulong:
case Tyfloat32: case Tyfloat64:
case Tyslice: case Tyarray: case Tytuple: case Tystruct: