]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: consolidate Type construction and copying code
authorMatthew Dempsky <mdempsky@google.com>
Wed, 9 Mar 2016 23:32:57 +0000 (15:32 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 10 Mar 2016 01:37:09 +0000 (01:37 +0000)
commitb014b55b82fe8319001f30c7e57e9feab9ebc5f0
tree3e775f3dba3b021e26185d610c0610299d054fcc
parentc2400e31ad7ab0c87801bb744af2c2b7b41dd702
cmd/compile: consolidate Type construction and copying code

This should is preparatory cleanup to make it easier to use separate
types to represent each kind of Go type, rather than a single omnibus
Type struct with heavily overloaded fields.

Also, add TODO comments marking assignments that change an existing
Type's kind, as they need to be removed before we can factor Type.

Change-Id: If4b551fdea4ae045b10b1a3de2ee98f5cf32a517
Reviewed-on: https://go-review.googlesource.com/20494
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/bimport.go
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/subr.go
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/gc/typecheck.go