From: Mark Freeman Date: Thu, 29 May 2025 18:54:23 +0000 (-0400) Subject: cmd/compile/internal/noder: rename RelIndex to match codebase X-Git-Tag: go1.25rc1~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=78e86297f5cccb82a6a57081947fab8e8af32586;p=gostls13.git cmd/compile/internal/noder: rename RelIndex to match codebase Change-Id: I06b64ea3c1c02b46e242852f8f0b56d77df42161 Reviewed-on: https://go-review.googlesource.com/c/go/+/677236 LUCI-TryBot-Result: Go LUCI Auto-Submit: Mark Freeman Reviewed-by: Robert Griesemer --- diff --git a/src/cmd/compile/internal/noder/doc.go b/src/cmd/compile/internal/noder/doc.go index f76e5723b7..baf7c67463 100644 --- a/src/cmd/compile/internal/noder/doc.go +++ b/src/cmd/compile/internal/noder/doc.go @@ -39,8 +39,7 @@ kind. Go constructs are mapped onto (potentially multiple) elements. Elements are accessed using an index relative to the start of the section. - // TODO(markfreeman): Rename to SectionIndex. - RelIndex = Uint64 . + RelElemIdx = Uint64 . ## String Section String values are stored as elements in the string section. Elements @@ -147,7 +146,7 @@ referenced element. . RefTableEntry = [ Sync ] SectionKind - RelIndex + RelElemIdx . Elements encode references to other elements as an index in the @@ -155,7 +154,7 @@ reference table — not the location of the referenced element directly. // TODO(markfreeman): Rename to RefUse. UseReloc = [ Sync ] - RelIndex + RelElemIdx . # Primitives