aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types/type.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-12-29 01:22:50 -0800
committerMatthew Dempsky <mdempsky@google.com>2020-12-29 09:57:31 +0000
commit6f30c9504861d68d13113989a3cf063832d47002 (patch)
tree195a6f09ffe9aad50d4fb213959a328a5b50bdc8 /src/cmd/compile/internal/types/type.go
parent171fc6f22388cc8628b5590f42d46a7c57277428 (diff)
downloadgo-6f30c9504861d68d13113989a3cf063832d47002.tar.gz
go-6f30c9504861d68d13113989a3cf063832d47002.zip
[dev.regabi] cmd/compile: remove unneeded indirection
Thanks to package reorganizing, we can remove types.TypeLinkSym by simply having its only callers use reflectdata.TypeLinksym directly. Passes toolstash -cmp. Change-Id: I5bc5dbb6bf0664af43ae5130cfe1f19bd23b2bfe Reviewed-on: https://go-review.googlesource.com/c/go/+/280644 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/types/type.go')
-rw-r--r--src/cmd/compile/internal/types/type.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/types/type.go b/src/cmd/compile/internal/types/type.go
index 6feedbfabc..5176b96c02 100644
--- a/src/cmd/compile/internal/types/type.go
+++ b/src/cmd/compile/internal/types/type.go
@@ -6,7 +6,6 @@ package types
import (
"cmd/compile/internal/base"
- "cmd/internal/obj"
"cmd/internal/src"
"fmt"
"sync"
@@ -1532,10 +1531,6 @@ func (t *Type) HasPointers() bool {
return true
}
-func (t *Type) Symbol() *obj.LSym {
- return TypeLinkSym(t)
-}
-
// Tie returns 'T' if t is a concrete type,
// 'I' if t is an interface type, and 'E' if t is an empty interface type.
// It is used to build calls to the conv* and assert* runtime routines.