mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[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>
This commit is contained in:
parent
171fc6f223
commit
6f30c95048
5 changed files with 3 additions and 31 deletions
|
|
@ -5,6 +5,7 @@
|
|||
package ssa
|
||||
|
||||
import (
|
||||
"cmd/compile/internal/reflectdata"
|
||||
"cmd/compile/internal/types"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/objabi"
|
||||
|
|
@ -270,11 +271,11 @@ func writebarrier(f *Func) {
|
|||
case OpMoveWB:
|
||||
fn = typedmemmove
|
||||
val = w.Args[1]
|
||||
typ = w.Aux.(*types.Type).Symbol()
|
||||
typ = reflectdata.TypeLinksym(w.Aux.(*types.Type))
|
||||
nWBops--
|
||||
case OpZeroWB:
|
||||
fn = typedmemclr
|
||||
typ = w.Aux.(*types.Type).Symbol()
|
||||
typ = reflectdata.TypeLinksym(w.Aux.(*types.Type))
|
||||
nWBops--
|
||||
case OpVarDef, OpVarLive, OpVarKill:
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue