]> Cypherpunks repositories - gostls13.git/commit
go/types: add a compiler param to SizesFor
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 2 Mar 2017 15:02:26 +0000 (07:02 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 2 Mar 2017 17:13:28 +0000 (17:13 +0000)
commit32a1736d2416363cea43a297632acc7414e77032
tree94c21c5feb0ed9484e907a128fd0dda6e157e578
parent542a60fbdea55ca022fd87146a31b09058ee6850
go/types: add a compiler param to SizesFor

The current StdSizes most closely matches
the gc compiler, and the uses I know of that care
which compiler the sizes are for are all for
the gc compiler, so call the existing
implementation "gc".

Updates #17586
Fixes #19351

Change-Id: I2bdd694518fbe233473896321a1f9758b46ed79b
Reviewed-on: https://go-review.googlesource.com/37666
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/internal/srcimporter/srcimporter.go
src/go/types/api.go
src/go/types/gotype.go
src/go/types/sizes.go