mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move Node.Pkg to Node.Name.Pkg
$ sizeof -p cmd/compile/internal/gc Node Node 224 $ Change-Id: Id0969e8df99c43a5f6f8d77a38f20a71a467e7c6 Reviewed-on: https://go-review.googlesource.com/10527 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
140ef3c59a
commit
ac2bda1b00
5 changed files with 13 additions and 15 deletions
|
|
@ -33,9 +33,6 @@ type Node struct {
|
|||
Curfn *Node // function for local variables
|
||||
Param *Param
|
||||
|
||||
// OPACK
|
||||
Pkg *Pkg
|
||||
|
||||
// Escape analysis.
|
||||
Escflowsrc *NodeList // flow(this, src)
|
||||
Escretval *NodeList // on OCALLxxx, list of dummy return values
|
||||
|
|
@ -91,9 +88,10 @@ type Node struct {
|
|||
Hasbreak bool // has break statement
|
||||
}
|
||||
|
||||
// Name holds Node fields used only by ONAME nodes.
|
||||
// Name holds Node fields used only by named nodes (ONAME, OPACK, some OLITERAL).
|
||||
type Name struct {
|
||||
Pack *Node // real package for import . names
|
||||
Pkg *Pkg // pkg for OPACK nodes
|
||||
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