1
0
mirror of https://github.com/golang/go synced 2024-10-01 07:28:35 -06:00
go/importer
Alan Donovan 5cc33ea5a7 go.tools/ssa: cosmetic changes to ssa.Alloc.
Remove its 'name' field and treat it just like any other
ssa.Register: it gets a temp name like "t1".

Instead, give it a comment field holding its purpose, e.g, "x"
for a source-level vare, or "new", "slicelit", "complit" or
"varargs".

This improves usability of tools whose UI needs to refer to a
particular allocation site.

R=gri
CC=golang-dev
https://golang.org/cl/12273043
2013-08-01 14:06:10 -04:00
..
importer.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
pkginfo.go go.tools/ssa: use new Selections to simplify builder case discrimination. 2013-07-26 22:29:44 -04:00
source_test.go go.tools/importer: rename Context to Config for consistency with go/types. 2013-07-19 11:02:27 -04:00
source.go go.tools/ssa: cosmetic changes to ssa.Alloc. 2013-08-01 14:06:10 -04:00
util.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00