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:
parent
db3bf9c674
commit
ce9b379c90
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user