]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify exporting ONAME nodes
authorMatthew Dempsky <mdempsky@google.com>
Tue, 12 Sep 2017 20:36:44 +0000 (13:36 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 13 Sep 2017 22:07:35 +0000 (22:07 +0000)
commitc64e7938505fb31ab869d9305b8e15781bc426ce
tree01e8d45ad381d87dfd9777d4418235bcaf513826
parent3098cf01754a2cda60ff2953f5c09c010d7683bf
cmd/compile: simplify exporting ONAME nodes

These two special cases are unnecessary:

1) "~b%d" references only appear during walk, to handle "return"
statements implicitly assigning to blank result parameters. Even if
they could appear, the "inlined and customized version" accidentally
diverged from p.sym in golang.org/cl/33911.

2) The Vargen case is already identical to the default case, and it
never overlaps with the remaining "T.method" case.

Passes toolstash-check.

Change-Id: I03f7e5b75b707b43afc8ed6eb90f43ba93ed17ae
Reviewed-on: https://go-review.googlesource.com/63272
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/compile/internal/gc/bexport.go