]> Cypherpunks repositories - gostls13.git/commit
cmd: move experiment flags into objabi.Experiment
authorAustin Clements <austin@google.com>
Tue, 16 Mar 2021 21:06:25 +0000 (17:06 -0400)
committerAustin Clements <austin@google.com>
Thu, 18 Mar 2021 21:27:23 +0000 (21:27 +0000)
commit0c93b16d015663a60ac77900ca0dcfab92310790
tree7069fdf188813c159797e9a2edea5d0f91943d7a
parentd3ab6b50496a58ff3deb2502b6c8b9b38947eeca
cmd: move experiment flags into objabi.Experiment

This moves all remaining GOEXPERIMENT flags into the objabi.Experiment
struct, drops the "_enabled" from their name, and makes them all bool
typed.

We also drop DebugFlags.Fieldtrack because the previous CL shifted the
one test that used it to use GOEXPERIMENT instead.

Change-Id: I3406fe62b1c300bb4caeaffa6ca5ce56a70497fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/302389
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
13 files changed:
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/base/flag.go
src/cmd/compile/internal/dwarfgen/dwarf.go
src/cmd/compile/internal/noder/lex.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssagen/pgen.go
src/cmd/compile/internal/walk/expr.go
src/cmd/go/internal/work/gc.go
src/cmd/internal/objabi/util.go
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/ld/main.go
src/runtime/runtime2.go