]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove gc.eqtype in comments
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 22 Aug 2019 17:15:40 +0000 (00:15 +0700)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 28 Aug 2019 09:28:59 +0000 (09:28 +0000)
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 <mdempsky@google.com>
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/types/type.go

index 64716d84027e464f4b9cce5328f81711d63eb168..15850d72a19a41c9462223438ba66ff3da8c7436 100644 (file)
@@ -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 {
index e2f3e66d8bffb7112f66d0cf32db95c55f0ca3b1..e4ab40c4fdf47189e2dd1863baa6fd54f40c5fff 100644 (file)
@@ -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