]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: change iexport to avoid map[ir.Node]
authorMatthew Dempsky <mdempsky@google.com>
Sun, 6 Dec 2020 20:14:46 +0000 (12:14 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sun, 6 Dec 2020 21:06:05 +0000 (21:06 +0000)
commite885df2731cb36925c9a9de9cf1a34a167461cd7
treeb2b6ab3df86b1a6b1e02bd2650e5f8076a17cf66
parent2d4c95565a770227ef2943b68ebe9fac02f79377
[dev.regabi] cmd/compile: change iexport to avoid map[ir.Node]

In the past, we had a lot of trouble with misusing *types.Sym
throughout the frontend, so I tried to push us towards always passing
around ONAMEs instead. But for constructing and writing out the symbol
indexes for the indexed export data, keying by *types.Sym is exactly
what we want.

Passes buildall w/ toolstash -cmp.

Updates #42982.

Change-Id: Idd8f1fb057d75a52a34ebc7788d9332fb49caf8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/275755
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/gc/iexport.go