mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link/internal/loader: remove some unused types
The types funcAllocInfo and funcInfoSym are no longer referenced. Fixes #38456. Change-Id: Icd32445f6027429f4a2781554d2086790ebe5daf Reviewed-on: https://go-review.googlesource.com/c/go/+/228318 Run-TryBot: Than McIntosh <thanm@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
a6a8974a5a
commit
c144a94b26
1 changed files with 0 additions and 19 deletions
|
|
@ -2234,25 +2234,6 @@ func loadObjSyms(l *Loader, syms *sym.Symbols, r *oReader) int {
|
|||
return nr
|
||||
}
|
||||
|
||||
// funcInfoSym records the sym.Symbol for a function, along with a copy
|
||||
// of the corresponding goobj2.Sym and the index of its FuncInfo aux sym.
|
||||
// We use this to delay populating FuncInfo until we can batch-allocate
|
||||
// slices for their sub-objects.
|
||||
type funcInfoSym struct {
|
||||
s *sym.Symbol // sym.Symbol for a live function
|
||||
osym *goobj2.Sym // object file symbol data for that function
|
||||
isym int // global symbol index of FuncInfo aux sym for func
|
||||
}
|
||||
|
||||
// funcAllocInfo records totals/counts for all functions in an objfile;
|
||||
// used to help with bulk allocation of sym.Symbol sub-objects.
|
||||
type funcAllocInfo struct {
|
||||
symPtr uint32 // number of *sym.Symbol's needed in file slices
|
||||
inlCall uint32 // number of sym.InlinedCall's needed in inltree slices
|
||||
pcData uint32 // number of sym.Pcdata's needed in pdata slices
|
||||
fdOff uint32 // number of int64's needed in all Funcdataoff slices
|
||||
}
|
||||
|
||||
// cloneToExternal takes the existing object file symbol (symIdx)
|
||||
// and creates a new external symbol payload that is a clone with
|
||||
// respect to name, version, type, relocations, etc. The idea here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue