]> Cypherpunks repositories - gostls13.git/commit
cmd/link: remove objIdx structure
authorJeremy Quirke <qjeremy@uber.com>
Sat, 2 Dec 2023 10:03:13 +0000 (10:03 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 23 Mar 2024 04:28:32 +0000 (04:28 +0000)
commitc2c4a32f9e57ac9f7102deeba8273bcd2b205d3c
treeaaf4559600f000e3c8e4ebcbe8c5efc6436044af
parent83a6c13e7344394d32d4114c3504ffecaae37b1e
cmd/link: remove objIdx structure

This indirection appears to be unnecessary for linking or linker debugging, and therefore hinders readability.

Since all *oReaders are added to loader.objs *only* via the Preload -> addObj path, before any symbols are examined, there is no possible way the "i" member of this structure is still useful; and is likely a remnant of an earlier design.

Change-Id: Icd880f40bf3299bf1aa0a14cf217268e49ee90c5
GitHub-Last-Rev: dd2d512cbe99a551585fc9f895eca28a5bfde21b
GitHub-Pull-Request: golang/go#57460
Reviewed-on: https://go-review.googlesource.com/c/go/+/459456
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/loader/loader.go