aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/loader/loader.go
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2020-04-15 13:46:25 -0400
committerThan McIntosh <thanm@google.com>2020-04-15 18:06:17 +0000
commitc144a94b267121a41da3fc0b5ce381641f41253e (patch)
tree1f0a63aef8c9e85a6639e15a05cdfbbbc82c429b /src/cmd/link/internal/loader/loader.go
parenta6a8974a5a569d9dce2ad93672477bf9598f7682 (diff)
downloadgo-c144a94b267121a41da3fc0b5ce381641f41253e.tar.gz
go-c144a94b267121a41da3fc0b5ce381641f41253e.zip
[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>
Diffstat (limited to 'src/cmd/link/internal/loader/loader.go')
-rw-r--r--src/cmd/link/internal/loader/loader.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/cmd/link/internal/loader/loader.go b/src/cmd/link/internal/loader/loader.go
index 3b77aa70e1..e996fc720d 100644
--- a/src/cmd/link/internal/loader/loader.go
+++ b/src/cmd/link/internal/loader/loader.go
@@ -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