]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: update dextratypeData to accept *obj.LSym
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 21 Apr 2017 21:38:28 +0000 (14:38 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 21 Apr 2017 23:16:05 +0000 (23:16 +0000)
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>
src/cmd/compile/internal/gc/reflect.go

index 3a20a597a788b5814456b230ef57a205756cdef7..42278f360785bebf906edfa4c0a683e095c14b49 100644 (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