cmd/compile: move Node.Pack to Node.Name.Pack

$ sizeof -p cmd/compile/internal/gc Node
Node 232
$

Change-Id: I4be025f4ec11f882f24ae7582821d36d3b122b77
Reviewed-on: https://go-review.googlesource.com/10526
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Russ Cox 2015-05-26 23:08:39 -04:00
parent cb20146097
commit 140ef3c59a
8 changed files with 37 additions and 13 deletions

View file

@ -331,7 +331,10 @@ func importdot(opkg *Pkg, pack *Node) {
s1.Def = s.Def
s1.Block = s.Block
s1.Def.Pack = pack
if s1.Def.Name == nil {
Dump("s1def", s1.Def)
}
s1.Def.Name.Pack = pack
s1.Origpkg = opkg
n++
}