cmd/internal/obj: remove use of "iota - X"

This was inserted by c2go to turn each enum { ... } into one const ( ... ) block,
but it is fragile and was never intended as a long-term thing.

Change-Id: I8de8e0984b130456da70e4d59891276dfef7ac27
Reviewed-on: https://go-review.googlesource.com/6932
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Russ Cox 2015-03-05 14:04:12 -05:00
parent cdb7d7dcc2
commit ed263f4dd2
4 changed files with 77 additions and 19 deletions

View file

@ -402,8 +402,11 @@ const (
)
const (
TYPE_NONE = 0
TYPE_BRANCH = 5 + iota - 1
TYPE_NONE = 0
)
const (
TYPE_BRANCH = 5 + iota
TYPE_TEXTSIZE
TYPE_MEM
TYPE_CONST