aboutsummaryrefslogtreecommitdiff
path: root/src/internal/pkgbits/decoder.go
diff options
context:
space:
mode:
authorMark Freeman <mark@golang.org>2025-05-19 16:06:42 -0400
committerGopher Robot <gobot@golang.org>2025-05-20 12:55:36 -0700
commitfa42585dadb8d70191820549435820cb70691cf6 (patch)
tree4ef28dcd50c108e7d37d841537703aa5470821bf /src/internal/pkgbits/decoder.go
parent96d2211c61189f056fa3c7c8d8abb351596c0f2c (diff)
downloadgo-fa42585dadb8d70191820549435820cb70691cf6.tar.xz
internal/pkgbits: rename RelocEnt to RefTableEntry
Change-Id: I9b1c9a0499ad3444e8cb3e4be187f9fab816c90c Reviewed-on: https://go-review.googlesource.com/c/go/+/674159 Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Mark Freeman <mark@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/internal/pkgbits/decoder.go')
-rw-r--r--src/internal/pkgbits/decoder.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/internal/pkgbits/decoder.go b/src/internal/pkgbits/decoder.go
index 9ff6f5c76c..bbda6e9285 100644
--- a/src/internal/pkgbits/decoder.go
+++ b/src/internal/pkgbits/decoder.go
@@ -54,7 +54,7 @@ type PkgDecoder struct {
// (or 0, if K==0) and end at elemEndsEnds[K].
elemEndsEnds [numRelocs]uint32
- scratchRelocEnt []RelocEnt
+ scratchRelocEnt []RefTableEntry
}
// PkgPath returns the package path for the package
@@ -196,10 +196,10 @@ func (pr *PkgDecoder) NewDecoderRaw(k SectionKind, idx RelIndex) Decoder {
r.Data.Reset(pr.DataIdx(k, idx))
r.Sync(SyncRelocs)
- r.Relocs = make([]RelocEnt, r.Len())
+ r.Relocs = make([]RefTableEntry, r.Len())
for i := range r.Relocs {
r.Sync(SyncReloc)
- r.Relocs[i] = RelocEnt{SectionKind(r.Len()), RelIndex(r.Len())}
+ r.Relocs[i] = RefTableEntry{SectionKind(r.Len()), RelIndex(r.Len())}
}
return r
@@ -219,11 +219,11 @@ func (pr *PkgDecoder) TempDecoderRaw(k SectionKind, idx RelIndex) Decoder {
r.Relocs = pr.scratchRelocEnt[:l]
pr.scratchRelocEnt = nil
} else {
- r.Relocs = make([]RelocEnt, l)
+ r.Relocs = make([]RefTableEntry, l)
}
for i := range r.Relocs {
r.Sync(SyncReloc)
- r.Relocs[i] = RelocEnt{SectionKind(r.Len()), RelIndex(r.Len())}
+ r.Relocs[i] = RefTableEntry{SectionKind(r.Len()), RelIndex(r.Len())}
}
return r
@@ -234,7 +234,7 @@ func (pr *PkgDecoder) TempDecoderRaw(k SectionKind, idx RelIndex) Decoder {
type Decoder struct {
common *PkgDecoder
- Relocs []RelocEnt
+ Relocs []RefTableEntry
Data strings.Reader
k SectionKind