1
0
mirror of https://github.com/golang/go synced 2024-11-25 22:28:02 -07:00

no debug symbols for internal-only method types.

now 15% overhead instead of 30% in binaries.

R=ken
OCL=33235
CL=33288
This commit is contained in:
Russ Cox 2009-08-14 13:07:53 -07:00
parent db3bf9c674
commit ce9b379c90
2 changed files with 2 additions and 0 deletions

View File

@ -940,6 +940,7 @@ naddr(Node *n, Addr *a)
a->etype = simtype[n->type->etype]; a->etype = simtype[n->type->etype];
a->width = n->type->width; a->width = n->type->width;
if(n->sym != S && strncmp(n->sym->name, "autotmp_", 8) != 0) 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->gotype = typename(n->type)->left->sym;
} }
a->offset = n->xoffset; a->offset = n->xoffset;

View File

@ -1692,6 +1692,7 @@ naddr(Node *n, Addr *a)
if(n->type != T) { if(n->type != T) {
a->etype = simtype[n->type->etype]; a->etype = simtype[n->type->etype];
if(n->sym != S && strncmp(n->sym->name, "autotmp_", 8) != 0) 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->gotype = typename(n->type)->left->sym;
} }
a->offset = n->xoffset; a->offset = n->xoffset;