diff options
author | Matthew Dempsky <mdempsky@google.com> | 2020-12-29 01:22:50 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2020-12-29 09:57:31 +0000 |
commit | 6f30c9504861d68d13113989a3cf063832d47002 (patch) | |
tree | 195a6f09ffe9aad50d4fb213959a328a5b50bdc8 /src/cmd/compile/internal/types/utils.go | |
parent | 171fc6f22388cc8628b5590f42d46a7c57277428 (diff) | |
download | go-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/utils.go')
-rw-r--r-- | src/cmd/compile/internal/types/utils.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cmd/compile/internal/types/utils.go b/src/cmd/compile/internal/types/utils.go index 2477f1da66..f9f629ca3e 100644 --- a/src/cmd/compile/internal/types/utils.go +++ b/src/cmd/compile/internal/types/utils.go @@ -4,19 +4,8 @@ package types -import ( - "cmd/internal/obj" -) - const BADWIDTH = -1000000000 -// The following variables must be initialized early by the frontend. -// They are here to break import cycles. -// TODO(gri) eliminate these dependencies. -var ( - TypeLinkSym func(*Type) *obj.LSym -) - type bitset8 uint8 func (f *bitset8) set(mask uint8, b bool) { |