1
0
mirror of https://github.com/golang/go synced 2024-11-23 14:20:05 -07:00

cmd/compile: update dextratypeData to accept *obj.LSym

Passes toolstash-check.

Change-Id: Ic235960e85b8faeffe81dac2334c09757578a552
Reviewed-on: https://go-review.googlesource.com/41406
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Josh Bleecher Snyder 2017-04-21 14:38:28 -07:00
parent 0e497971bb
commit ad4b5f28ce

View File

@ -649,8 +649,7 @@ func typePkg(t *types.Type) *types.Pkg {
// dextratypeData dumps the backing array for the []method field of
// runtime.uncommontype.
func dextratypeData(s *types.Sym, ot int, t *types.Type) int {
lsym := s.Linksym()
func dextratypeData(lsym *obj.LSym, ot int, t *types.Type) int {
for _, a := range methods(t) {
// ../../../../runtime/type.go:/method
exported := exportname(a.name)
@ -1300,7 +1299,7 @@ ok:
}
}
ot = dextratypeData(s, ot, t)
ot = dextratypeData(s.Linksym(), ot, t)
ggloblsym(s.Linksym(), int32(ot), int16(dupok|obj.RODATA))
// The linker will leave a table of all the typelinks for