]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make Afunclit the default/only behavior for Naddr
authorMatthew Dempsky <mdempsky@google.com>
Thu, 29 Sep 2016 22:43:10 +0000 (15:43 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 29 Sep 2016 23:13:18 +0000 (23:13 +0000)
commitdd748cf3141d45eeeedcb9b88aa11e47b16a0008
tree3b154a453a2241a5dd693e9ea46ab7a34ba4c39a
parentd2df8498f366669acbae24f38e3683b3acdab102
cmd/compile: make Afunclit the default/only behavior for Naddr

Naddr used to translate PFUNC Nodes into references to the function
literal wrapper, and then Afunclit could be used to rewrite it to
reference the function text itself. But now everywhere we use Naddr on
PFUNC Nodes, we immediately call Afunclit anyway. So just merge
Afunclit's behavior into Naddr.

Passes toolstash/buildall.

Change-Id: If2ca6d7f314c1a0711df9b8209aace16ba4b8bc0
Reviewed-on: https://go-review.googlesource.com/30073
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/arm/ggen.go
src/cmd/compile/internal/arm64/ggen.go
src/cmd/compile/internal/gc/gsubr.go
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/mips64/ggen.go
src/cmd/compile/internal/ppc64/ggen.go