]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: export TypeHash, return value without blanks
authorRobert Griesemer <gri@golang.org>
Tue, 14 Sep 2021 20:09:19 +0000 (13:09 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 15 Sep 2021 03:29:39 +0000 (03:29 +0000)
commit9fc28892cb88dd4c7b0552137b97c1692c23e46b
treee4bd85cfb0e77a9a6d008833ab4fc48faf2ee51b
parent2da3375e9b4980e368a8641f54cc53c4af4d1a12
cmd/compile/internal/types2: export TypeHash, return value without blanks

Change the typeWriter to produce blank-free hashes where easily possible
if used as a type hasher, and replace remaining blanks with '#' is needed.

Exported Environment.TypeHash for use by the compiler.

Change-Id: Icbd364c207f9c139a7a1844bb695512a0c56a4e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/349990
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/environment.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/subst.go
src/cmd/compile/internal/types2/typestring.go