1
0
mirror of https://github.com/golang/go synced 2024-11-25 11:57:58 -07:00

6g: better genembedtramp fatal error,

and don't put inaccessible private methods
   in signature.

R=ken
OCL=23138
CL=23140
This commit is contained in:
Russ Cox 2009-01-20 15:36:57 -08:00
parent a3c4faf83f
commit 35e37bbf41
2 changed files with 3 additions and 1 deletions

View File

@ -537,7 +537,7 @@ genembedtramp(Type *t, Sig *b)
if(c == 1)
goto out;
}
fatal("genembedtramp");
fatal("genembedtramp %T.%s", t, b->name);
out:
if(d == 0)

View File

@ -2489,6 +2489,8 @@ expand0(Type *t)
u = methtype(t);
if(u != T) {
for(f=u->method; f!=T; f=f->down) {
if(!exportname(f->sym->name) && strcmp(f->sym->package, package) != 0)
continue;
if(f->sym->uniq)
continue;
f->sym->uniq = 1;