]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: cleaning lex.go
authorMarvin Stenger <marvin.stenger94@gmail.com>
Thu, 10 Sep 2015 22:03:19 +0000 (00:03 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Sep 2015 15:55:56 +0000 (15:55 +0000)
commit211cdf1e004b35e817935537671f9577066800df
tree87dcd270ce5006b12f3bdd7b76fffe2a08f5bf2b
parent19d262ffdf94c986c47d15424da8d07326f0641c
cmd/compile/internal/gc: cleaning lex.go

Cleaning along the way:
-convert variable types from int to bool
-remove unnecessary functions
-remove unnecessary type conversion
-remove unnecessary variable declarations
-transform struct{string,string} with lookup to map[string]string

This change passes go build -toolexec 'toolstash -cmp' -a std.

Change-Id: I259728fe4afd7f23b67f08fab856ce0abee57b21
Reviewed-on: https://go-review.googlesource.com/14435
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/go.y
src/cmd/compile/internal/gc/lex.go
src/cmd/compile/internal/gc/subr.go
src/cmd/compile/internal/gc/util.go
src/cmd/compile/internal/gc/y.go