aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/deadcode.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2025-07-25 15:35:36 -0400
committerGopher Robot <gobot@golang.org>2025-07-30 11:47:14 -0700
commit2ae059ccaf982c3304fae0b48c1d78ad7192cbdd (patch)
treedc3fda38ac232193ff6b3978978dc41e9906bbe0 /src/cmd/link/internal/ld/deadcode.go
parentcc571dab91e73413cf2ba1546a4ba485038cf2d1 (diff)
downloadgo-2ae059ccaf982c3304fae0b48c1d78ad7192cbdd.tar.xz
all: remove GOEXPERIMENT=swissmap
For #54766. Change-Id: I6a6a636c40b5fe2e8b0d4a5e23933492bc8bb76e Reviewed-on: https://go-review.googlesource.com/c/go/+/691595 Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
-rw-r--r--src/cmd/link/internal/ld/deadcode.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go
index cdf7deb31b..d042b23827 100644
--- a/src/cmd/link/internal/ld/deadcode.go
+++ b/src/cmd/link/internal/ld/deadcode.go
@@ -560,13 +560,9 @@ func (d *deadcodePass) decodetypeMethods(ldr *loader.Loader, arch *sys.Arch, sym
case abi.Chan: // reflect.chanType
off += 2 * arch.PtrSize
case abi.Map:
- if buildcfg.Experiment.SwissMap {
- off += 7*arch.PtrSize + 4 // internal/abi.SwissMapType
- if arch.PtrSize == 8 {
- off += 4 // padding for final uint32 field (Flags).
- }
- } else {
- off += 4*arch.PtrSize + 8 // internal/abi.OldMapType
+ off += 7*arch.PtrSize + 4 // internal/abi.SwissMapType
+ if arch.PtrSize == 8 {
+ off += 4 // padding for final uint32 field (Flags).
}
case abi.Interface: // reflect.interfaceType
off += 3 * arch.PtrSize