]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove OCASE and rename OXCASE to OCASE
authorMatthew Dempsky <mdempsky@google.com>
Wed, 18 Sep 2019 01:32:04 +0000 (18:32 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 18 Sep 2019 02:31:34 +0000 (02:31 +0000)
commit2fc6366fb56aa77efa3cecd44ce941472786a418
tree5f318cc0351f408ed8d34dc0b246a5ef1c77c98e
parent1b2c7948963543286516f78f0b0d52956f58d82c
cmd/compile: remove OCASE and rename OXCASE to OCASE

We used to use OXCASE to represent general, possibly multi-valued
cases, and then desugar these during walk into single-value cases
represented by OCASE.

In CL 194660, we switched to eliminated the desugaring step and
instead handle the multi-valued cases directly, which eliminates the
need for an OCASE Op. Instead, we can simply remove OCASE, and rename
OXCASE to just OCASE.

Passes toolstash-check.

Change-Id: I3cc184340f9081d37453927cca1c059267fdbc12
Reviewed-on: https://go-review.googlesource.com/c/go/+/196117
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/iexport.go
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/noder.go
src/cmd/compile/internal/gc/op_string.go
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/gc/select.go
src/cmd/compile/internal/gc/swt.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/walk.go