mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: remove LSym.RefIdx
LSym.RefIdx was for the old object files. I should have deleted it when I deleted old object file code. Change-Id: I8294f43a1e7ba45b1d75e84cc83cbaf2cb32f025 Reviewed-on: https://go-review.googlesource.com/c/go/+/262077 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
e43ef8dda2
commit
c8eea1633e
2 changed files with 2 additions and 3 deletions
|
|
@ -395,7 +395,6 @@ type LSym struct {
|
||||||
Type objabi.SymKind
|
Type objabi.SymKind
|
||||||
Attribute
|
Attribute
|
||||||
|
|
||||||
RefIdx int // Index of this symbol in the symbol reference list.
|
|
||||||
Size int64
|
Size int64
|
||||||
Gotype *LSym
|
Gotype *LSym
|
||||||
P []byte
|
P []byte
|
||||||
|
|
@ -405,7 +404,7 @@ type LSym struct {
|
||||||
|
|
||||||
Pkg string
|
Pkg string
|
||||||
PkgIdx int32
|
PkgIdx int32
|
||||||
SymIdx int32 // TODO: replace RefIdx
|
SymIdx int32
|
||||||
}
|
}
|
||||||
|
|
||||||
// A FuncInfo contains extra fields for STEXT symbols.
|
// A FuncInfo contains extra fields for STEXT symbols.
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ func TestSizeof(t *testing.T) {
|
||||||
_64bit uintptr // size on 64bit platforms
|
_64bit uintptr // size on 64bit platforms
|
||||||
}{
|
}{
|
||||||
{Addr{}, 32, 48},
|
{Addr{}, 32, 48},
|
||||||
{LSym{}, 76, 128},
|
{LSym{}, 72, 120},
|
||||||
{Prog{}, 132, 200},
|
{Prog{}, 132, 200},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue