mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
cb20146097
commit
140ef3c59a
8 changed files with 37 additions and 13 deletions
|
|
@ -30,7 +30,6 @@ type Node struct {
|
|||
|
||||
// ONAME
|
||||
Name *Name
|
||||
Pack *Node // real package for import . names
|
||||
Curfn *Node // function for local variables
|
||||
Param *Param
|
||||
|
||||
|
|
@ -94,6 +93,7 @@ type Node struct {
|
|||
|
||||
// Name holds Node fields used only by ONAME nodes.
|
||||
type Name struct {
|
||||
Pack *Node // real package for import . names
|
||||
Heapaddr *Node // temp holding heap address of param
|
||||
Inlvar *Node // ONAME substitute while inlining
|
||||
Defn *Node // initializing assignment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue