]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd/internal: remove unneeded RefIdx field
authorJeremy Faller <jeremy@golang.org>
Wed, 19 Feb 2020 16:03:42 +0000 (11:03 -0500)
committerJeremy Faller <jeremy@golang.org>
Wed, 19 Feb 2020 16:57:57 +0000 (16:57 +0000)
Change-Id: Ic77e67b70b76dc958890e74b77c9691c30eb6ba1
Reviewed-on: https://go-review.googlesource.com/c/go/+/220060
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/sizeof_test.go

index b96da1ba884026a28fac1889c8768914391821f1..970158076c01d7ca51487e3052dba1d58dcf74ac 100644 (file)
@@ -381,7 +381,6 @@ type LSym struct {
        Type objabi.SymKind
        Attribute
 
-       RefIdx int // Index of this symbol in the symbol reference list.
        Size   int64
        Gotype *LSym
        P      []byte
@@ -391,7 +390,7 @@ type LSym struct {
 
        Pkg    string
        PkgIdx int32
-       SymIdx int32 // TODO: replace RefIdx
+       SymIdx int32
 }
 
 // A FuncInfo contains extra fields for STEXT symbols.
index b5e170c6945f37b2c4f9edc7b2a72123e3e69668..69e60473f50ac8ba626576b08a2e0c49a5f4e3d8 100644 (file)
@@ -21,7 +21,7 @@ func TestSizeof(t *testing.T) {
                _64bit uintptr     // size on 64bit platforms
        }{
                {Addr{}, 32, 48},
-               {LSym{}, 76, 128},
+               {LSym{}, 72, 120},
                {Prog{}, 132, 200},
        }