From fa42585dadb8d70191820549435820cb70691cf6 Mon Sep 17 00:00:00 2001 From: Mark Freeman Date: Mon, 19 May 2025 16:06:42 -0400 Subject: internal/pkgbits: rename RelocEnt to RefTableEntry Change-Id: I9b1c9a0499ad3444e8cb3e4be187f9fab816c90c Reviewed-on: https://go-review.googlesource.com/c/go/+/674159 Reviewed-by: Robert Griesemer Auto-Submit: Mark Freeman LUCI-TryBot-Result: Go LUCI --- src/internal/pkgbits/decoder.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/internal/pkgbits/decoder.go') 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 -- cgit v1.3