]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rename ssa.Type's Elem method to ElemType
authorMatthew Dempsky <mdempsky@google.com>
Thu, 10 Mar 2016 22:35:39 +0000 (14:35 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 10 Mar 2016 23:02:33 +0000 (23:02 +0000)
commit0b281872e6390eb93c8bb176a20c72fef3d726d3
tree57c224b994b1d9c1fe836c10436d34ee87b58a5b
parente4571d33ac54cac5336a560a1c8ef224b86f3bda
cmd/compile: rename ssa.Type's Elem method to ElemType

I would like to add a

    func (t *Type) Elem() *Type

method to package gc, but that would collide with the existing

    func (t *Type) Elem() ssa.Type

method needed to make *gc.Type implement ssa.Type.  Because the latter
is much less widely used right now than the former will be, this CL
renames it to ElemType.

Longer term, hopefully gc and ssa will share a common Type interface,
and ElemType can go away.

Change-Id: I270008515dc4c01ef531cf715637a924659c4735
Reviewed-on: https://go-review.googlesource.com/20546
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/ssa/deadstore.go
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/ssa/type.go
src/cmd/compile/internal/ssa/type_test.go