]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: only save ONAMEs on Curfn.Dcl
authorMatthew Dempsky <mdempsky@google.com>
Tue, 1 Dec 2020 11:52:20 +0000 (03:52 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 1 Dec 2020 17:16:53 +0000 (17:16 +0000)
commit6ca23a45feebc8672a1851dbc65c5b34d481ca30
tree04e05c89b37a93df37575c7a0db2c499f7eb8efc
parenta17c5e2fce9340ec19d4019490b38a7645f244df
[dev.regabi] cmd/compile: only save ONAMEs on Curfn.Dcl

There's not really any use to tracking function-scoped constants and
types on Curfn.Dcl, and there's sloppy code that assumes all of the
declarations are variables (e.g., cmpstackvarlt).

Change-Id: I5d10dc681dac2c161c7b73ba808403052ca0608e
Reviewed-on: https://go-review.googlesource.com/c/go/+/274436
Reviewed-by: Russ Cox <rsc@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/dcl.go
test/live.go