]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: move itabname call out of implements
authorMatthew Dempsky <mdempsky@google.com>
Sun, 20 Dec 2020 03:26:06 +0000 (19:26 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 21 Dec 2020 19:41:21 +0000 (19:41 +0000)
commit06915ac14dfb7c80f384e3446bc6fa474e6bfa94
tree1b55bfa1aae4b637f19401bbeaba199d2168891f
parent4e8f681eff57803d8f3d40a71f6f70ed7618466b
[dev.regabi] cmd/compile: move itabname call out of implements

We only need to call itabname when actually creating the OCONVIFACE
ops, not any time we test whether a type implements an
interface. Additionally, by moving this call out of implements, we
make it purely based on types, which makes it safe to move to package
types.

Does not pass toolstash -cmp, because it shuffles symbol creation
order.

Change-Id: Iea8e0c9374218f4d97b4339020ebd758d051bd03
Reviewed-on: https://go-review.googlesource.com/c/go/+/279333
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/subr.go