]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rework checkdupfields
authorMatthew Dempsky <mdempsky@google.com>
Thu, 10 Mar 2016 23:50:49 +0000 (15:50 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 11 Mar 2016 01:52:42 +0000 (01:52 +0000)
commit88a21ebb210a282626b6fccf562957db9bcd9bf4
tree2abbec7c3225a090b4ff66262260f3adc2a54559
parent6b3d4a53538c091d3d0bf207d12db3ec641b85ea
cmd/compile: rework checkdupfields

Use a map to detect duplicate symbols. Allows eliminating an otherwise
unneeded field from Sym and gets rid of a global variable.

Change-Id: Ic004bca7e9130a1261a1cddbc17244529a2a1df4
Reviewed-on: https://go-review.googlesource.com/20552
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/dcl.go
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/sizeof_test.go