]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rename Type.IsPtr to Type.IsPtrShaped
authorMatthew Dempsky <mdempsky@google.com>
Mon, 28 Mar 2016 17:55:44 +0000 (10:55 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 30 Mar 2016 19:11:16 +0000 (19:11 +0000)
commit788f11263a0eccb25d9067525d84208058000391
treecb9203d3a1aea4c9e793537aeef4d4fd4a2cef20
parentfdf6761e01f2f826cc880266a00cc68bea6490fb
cmd/compile: rename Type.IsPtr to Type.IsPtrShaped

Previously, t.IsPtr() reported whether t was represented with a
pointer, but some of its callers expected it to report whether t is an
actual Go pointer. Resolve this by renaming t.IsPtr to t.IsPtrShaped
and adding a new t.IsPtr method to report Go pointer types.

Updated a couple callers in gc/ssa.go to use IsPtr instead of
IsPtrShaped.

Passes toolstash -cmp.

Updates #15028.

Change-Id: I0a8154b5822ad8a6ad296419126ad01a3d2a5dc5
Reviewed-on: https://go-review.googlesource.com/21232
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/type.go
src/cmd/compile/internal/ssa/type_test.go