From: Cuong Manh Le Date: Thu, 22 Aug 2019 17:15:40 +0000 (+0700) Subject: cmd/compile: remove gc.eqtype in comments X-Git-Tag: go1.14beta1~1320 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6a73e94c10b9c2a3162722f0eb4584dc6445cae5;p=gostls13.git cmd/compile: remove gc.eqtype in comments golang.org/cl/143180 changed gc.eqtype to types.Identical, but gc.eqtype is still mentioned in some comments. Remove them and update comments to mention new functions instead. Change-Id: I6c5eece5221f524556ee55db80de0e4bdfaf166e Reviewed-on: https://go-review.googlesource.com/c/go/+/191357 Reviewed-by: Matthew Dempsky --- diff --git a/src/cmd/compile/internal/gc/order.go b/src/cmd/compile/internal/gc/order.go index 64716d8402..15850d72a1 100644 --- a/src/cmd/compile/internal/gc/order.go +++ b/src/cmd/compile/internal/gc/order.go @@ -64,7 +64,7 @@ func order(fn *Node) { func (o *Order) newTemp(t *types.Type, clear bool) *Node { var v *Node // Note: LongString is close to the type equality we want, - // but not exactly. We still need to double-check with eqtype. + // but not exactly. We still need to double-check with types.Identical. key := t.LongString() a := o.free[key] for i, n := range a { diff --git a/src/cmd/compile/internal/types/type.go b/src/cmd/compile/internal/types/type.go index e2f3e66d8b..e4ab40c4fd 100644 --- a/src/cmd/compile/internal/types/type.go +++ b/src/cmd/compile/internal/types/type.go @@ -1013,7 +1013,7 @@ func (r *Sym) cmpsym(s *Sym) Cmp { // TODO(josharian): make this safe for recursive interface types // and use in signatlist sorting. See issue 19869. func (t *Type) cmp(x *Type) Cmp { - // This follows the structure of eqtype in subr.go + // This follows the structure of function identical in identity.go // with two exceptions. // 1. Symbols are compared more carefully because a <,=,> result is desired. // 2. Maps are treated specially to avoid endless recursion -- maps