From: Russ Cox Date: Tue, 10 Feb 2009 21:57:31 +0000 (-0800) Subject: fix export bug Rob tripped over. X-Git-Tag: weekly.2009-11-06~2193 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73dd4a37f9a6c6486ca80bf3f84cba7300cab5eb;p=gostls13.git fix export bug Rob tripped over. the lexer is already hiding names, so this clumsy hack is no longer necessary. R=ken OCL=24783 CL=24783 --- diff --git a/src/cmd/gc/export.c b/src/cmd/gc/export.c index ee1ce40da4..7697e3037f 100644 --- a/src/cmd/gc/export.c +++ b/src/cmd/gc/export.c @@ -410,14 +410,6 @@ importtype(Node *ss, Type *t) s->otype->sym = s; checkwidth(s->otype); - // If type name should not be visible to importers, - // hide it by setting the lexical type to name. - // This will make references in the ordinary program - // (but not the import sections) look at s->oname, - // which is nil, as for an undefined name. - if(s->export == 2 && !mypackage(ss)) - s->lexical = LNAME; - if(debug['e']) print("import type %S %lT\n", s, t); }