]> Cypherpunks repositories - gostls13.git/commitdiff
no debug symbols for internal-only method types.
authorRuss Cox <rsc@golang.org>
Fri, 14 Aug 2009 20:07:53 +0000 (13:07 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 14 Aug 2009 20:07:53 +0000 (13:07 -0700)
now 15% overhead instead of 30% in binaries.

R=ken
OCL=33235
CL=33288

src/cmd/6g/gsubr.c
src/cmd/8g/gsubr.c

index c4c6e348c9adee4cead1a568b4ddcff77db3fdfd..aec4cb1bd39e93858d5a4bf0dcf6c6166817b992 100644 (file)
@@ -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;
index 2eacd23ada99b15f944640a548c9a4c5781d0797..a0d2f6eb7e0b20caf02c8d6e2eb46166bd8984a2 100755 (executable)
@@ -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;