]> Cypherpunks repositories - gostls13.git/commit
cmd/link: make dwarf name slice index self-describing
authorMichael Pratt <mpratt@google.com>
Fri, 13 Dec 2024 20:05:27 +0000 (15:05 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 13 Dec 2024 20:32:22 +0000 (12:32 -0800)
commit08770a5b944ba1cf4f62f075bfd94cd36a061bdb
tree6fe8457a81050a9717e22023bf55542eff534082
parentc4f356dd863c449835248c24f6dc653323010a1c
cmd/link: make dwarf name slice index self-describing

cmd/compile/internal/dwarfgen.createComplexVar does it this way, which
has the nice property of documenting the expected prefix.

This is primarily for newtype, since defgotype checks for the prefix
immediately prior, but I changed both for consistency.

Change-Id: I49fa7c6166bdcbd19aaf91fe3dc20537080afcfc
Reviewed-on: https://go-review.googlesource.com/c/go/+/635177
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/cmd/link/internal/ld/dwarf.go