cmd/compile: replace TFIELD kind with separate Field type

Allows removing a bunch of unnecessary fields.

Passes toolstash/buildall.

Change-Id: Iec2492920e1c3ef352a9bf4296c74a55d9cc9ad6
Reviewed-on: https://go-review.googlesource.com/20677
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Matthew Dempsky 2016-03-14 01:20:49 -07:00
parent 2a46b08a02
commit 2e9369067b
22 changed files with 295 additions and 292 deletions

View file

@ -869,11 +869,11 @@ func maplit(ctxt int, n *Node, var_ *Node, init *Nodes) {
syma := Lookup("a")
symb := Lookup("b")
var fields [2]*Type
fields[0] = typ(TFIELD)
var fields [2]*Field
fields[0] = newField()
fields[0].Type = tk
fields[0].Sym = syma
fields[1] = typ(TFIELD)
fields[1] = newField()
fields[1].Type = tv
fields[1].Sym = symb