Commit ce9b379c authored by Russ Cox's avatar Russ Cox

no debug symbols for internal-only method types.

now 15% overhead instead of 30% in binaries.

R=ken
OCL=33235
CL=33288
parent db3bf9c6
......@@ -940,6 +940,7 @@ naddr(Node *n, Addr *a)
a->etype = simtype[n->type->etype];
a->width = n->type->width;
if(n->sym != S && strncmp(n->sym->name, "autotmp_", 8) != 0)
if(n->type->etype != TFUNC || n->type->thistuple == 0)
a->gotype = typename(n->type)->left->sym;
}
a->offset = n->xoffset;
......
......@@ -1692,6 +1692,7 @@ naddr(Node *n, Addr *a)
if(n->type != T) {
a->etype = simtype[n->type->etype];
if(n->sym != S && strncmp(n->sym->name, "autotmp_", 8) != 0)
if(n->type->etype != TFUNC || n->type->thistuple == 0)
a->gotype = typename(n->type)->left->sym;
}
a->offset = n->xoffset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment