From: Russ Cox Date: Fri, 14 Aug 2009 20:07:53 +0000 (-0700) Subject: no debug symbols for internal-only method types. X-Git-Tag: weekly.2009-11-06~868 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ce9b379c9069f4eec7986b5f9fd1da014bca9cd1;p=gostls13.git no debug symbols for internal-only method types. now 15% overhead instead of 30% in binaries. R=ken OCL=33235 CL=33288 --- diff --git a/src/cmd/6g/gsubr.c b/src/cmd/6g/gsubr.c index c4c6e348c9..aec4cb1bd3 100644 --- a/src/cmd/6g/gsubr.c +++ b/src/cmd/6g/gsubr.c @@ -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; diff --git a/src/cmd/8g/gsubr.c b/src/cmd/8g/gsubr.c index 2eacd23ada..a0d2f6eb7e 100755 --- a/src/cmd/8g/gsubr.c +++ b/src/cmd/8g/gsubr.c @@ -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;