]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: eliminate typeHashing global variable
authorRobert Griesemer <gri@golang.org>
Sun, 29 Aug 2021 01:19:36 +0000 (18:19 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 30 Aug 2021 22:07:49 +0000 (22:07 +0000)
commitb06cfe9b25a9cd6ef6ff482b9cd08b2f709131b0
tree9cea65d8bd2ad0b9b11ebf9ed8df384fded48012
parent437362ccec8aeab03aaac63db188f7e8f9eed699
cmd/compile/internal/types2: eliminate typeHashing global variable

Instead, keep track of hashing mode with a typeWriter field.
Introduce a new constructor (newTypeHasher) to set the mode.

Change-Id: Ie69cc0382532c75973794326be15c884b7fdcb76
Reviewed-on: https://go-review.googlesource.com/c/go/+/345929
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/subst.go
src/cmd/compile/internal/types2/typestring.go