cmd/internal/gc, cmd/gc: move Reg from Val to Node

Val is used to hold constant values.
Reg was the odd duck out.

Generated using eg.

No functional changes. Passes toolstash -cmp.

Change-Id: Ic1de769a1f92bb02e09a4428d998b716f307e2f6
Reviewed-on: https://go-review.googlesource.com/8912
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-04-13 10:28:57 -07:00
parent ab4df700b8
commit 5ed90cbbb0
16 changed files with 61 additions and 59 deletions

View file

@ -63,9 +63,12 @@ type Node struct {
// func
Func *Func
// OLITERAL/OREGISTER
// OLITERAL
Val Val
// OREGISTER, OINDREG
Reg int16
// ONAME
Ntype *Node
Defn *Node // ONAME: initializing assignment; OLABEL: labeled statement