]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: unify Relocs.Count and len(rs)
authorCherry Zhang <cherryyz@google.com>
Mon, 30 Mar 2020 14:04:00 +0000 (10:04 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 31 Mar 2020 23:02:36 +0000 (23:02 +0000)
commit0e0ee115c5110f83c763af5c8797759887fe0cb3
treedd992351e96d61106e13055488a91317eebb9433
parent6e3bde5f302a20c457459fdaedba21d8ff37ee08
[dev.link] cmd/link: unify Relocs.Count and len(rs)

The Count field in Relocs type is always equal to len(rs). Unify
them.

Change-Id: Ic77288ea58b61a98482b218e051d81047d0ddd88
Reviewed-on: https://go-review.googlesource.com/c/go/+/226717
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/deadcode2.go
src/cmd/link/internal/ld/decodesym2.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/go.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/loader/loader_test.go