]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: clean up switch code
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 27 Feb 2015 20:44:45 +0000 (20:44 +0000)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 3 Mar 2015 06:40:26 +0000 (06:40 +0000)
commit85c6f71b08f43ba8ceea4bc64c53d6873ac0eaad
tree56fffedfbd47691e47a84ca1f21daa0fa22fdd19
parent59cc5a197fd9d6c0c1bc1b9914d31c342baea22f
cmd/internal/gc: clean up switch code

This CL makes the switch walking and typechecking code
more idiomatic and adds documentation.
It also removes all but one global variable.

No functional changes. Confirmed with toolstash -cmp on the stdlib.

Change-Id: Ic3f38acc66e906edd722498839aeb557863639cf
Reviewed-on: https://go-review.googlesource.com/6268
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/internal/gc/swt.go