diff options
author | Matthew Dempsky <mdempsky@google.com> | 2017-09-19 12:45:17 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2017-09-20 17:47:12 +0000 |
commit | a53e853964cc9220ebc4b35aeb81a382939fb479 (patch) | |
tree | 2fadd475c8b00d447c4cfa17ddc4862dc56c07b9 /src/cmd/compile/internal/syntax/source.go | |
parent | 7e10a2f6f3bc509b27d02b3c5462e81798434fba (diff) | |
download | go-git-a53e853964cc9220ebc4b35aeb81a382939fb479.tar.gz |
cmd/compile/internal/types: simplify dclstack
We used to backup symbol declarations using complete Syms, but this
was unnecessary: very few of Sym's fields were actually needed. Also,
to restore a symbol, we had to re-Lookup the Sym in its Pkg.
By introducing a new dedicated dsym type for this purpose, we can
address both of these deficiencies.
Passes toolstash-check.
Change-Id: I39f3d672b301f84a3a62b9b34b4b2770cb25df79
Reviewed-on: https://go-review.googlesource.com/64811
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/syntax/source.go')
0 files changed, 0 insertions, 0 deletions