]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: simplify typecheck's Efoo consts
authorMatthew Dempsky <mdempsky@google.com>
Tue, 19 Apr 2016 21:15:37 +0000 (14:15 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 19 Apr 2016 22:57:26 +0000 (22:57 +0000)
commit2244ae417312a59e722643f6ea2f1b8168c599c9
treefd9caececdf92924548bff854067c5e887152b63
parent58012ea785851052a28f20544d7e2da0e0e6eefa
cmd/compile/internal/gc: simplify typecheck's Efoo consts

There's no need for Eiota, Eindir, Eaddr, or Eproc; the values are
threaded through to denote various typechecking contexts, but they
don't actually influence typechecking behavior at all.

Also, while here, switch the Efoo const declarations to use iota.

Passes toolstash -cmp.

Change-Id: I5cea869ccd0755c481cf071978f863474bc9c1ed
Reviewed-on: https://go-review.googlesource.com/22271
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/typecheck.go