aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2021-04-06 10:17:28 -0400
committerAustin Clements <austin@google.com>2021-04-08 02:17:15 +0000
commit0c4a08cb74abe026260a224a2b553c1f77a1172a (patch)
tree58c8f2a780273fbf9696d27f8583b5c04fdb42d5 /src/cmd/asm
parentaeaa4519b584747b57d780c31134be8f6bb36251 (diff)
downloadgo-0c4a08cb74abe026260a224a2b553c1f77a1172a.tar.gz
go-0c4a08cb74abe026260a224a2b553c1f77a1172a.zip
cmd/asm,runtime: reduce spellings of GOEXPERIMENTs
Currently, the objabi.Experiment fields use Go-standard CamelCase, the GOEXPERIMENT environment variable flags and build tags use all lowercase, and the asm macros use upper-case with underscores. This CL makes asm use the lowercase names for macros so there is one less spelling, e.g., GOEXPERIMENT_regabiargs. This also makes them consistent with the GOOS_* and GOARCH_* macros, which also use lower case. Change-Id: I305cd89af5e8cd1a89cc148746c034bcfd76db3c Reviewed-on: https://go-review.googlesource.com/c/go/+/307816 Trust: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/asm')
-rw-r--r--src/cmd/asm/internal/lex/input.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/asm/internal/lex/input.go b/src/cmd/asm/internal/lex/input.go
index d3ad328954..8aa6becf55 100644
--- a/src/cmd/asm/internal/lex/input.go
+++ b/src/cmd/asm/internal/lex/input.go
@@ -57,19 +57,19 @@ func predefine(defines flags.MultiFlag) map[string]*Macro {
}
}
if objabi.Experiment.RegabiWrappers {
- set("GOEXPERIMENT_REGABI_WRAPPERS")
+ set("GOEXPERIMENT_regabiwrappers")
}
if objabi.Experiment.RegabiG {
- set("GOEXPERIMENT_REGABI_G")
+ set("GOEXPERIMENT_regabig")
}
if objabi.Experiment.RegabiReflect {
- set("GOEXPERIMENT_REGABI_REFLECT")
+ set("GOEXPERIMENT_regabireflect")
}
if objabi.Experiment.RegabiDefer {
- set("GOEXPERIMENT_REGABI_DEFER")
+ set("GOEXPERIMENT_regabidefer")
}
if objabi.Experiment.RegabiArgs {
- set("GOEXPERIMENT_REGABI_ARGS")
+ set("GOEXPERIMENT_regabiargs")
}
}