compiler: remove duplication of Named_object traversal
authorIan Lance Taylor <iant@golang.org>
Mon, 3 Jan 2022 20:47:50 +0000 (12:47 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 5 Jan 2022 00:20:05 +0000 (16:20 -0800)
commita0239f852591d368a42ce3b6c9f85cfba6a3aeff
tree315e607cd4e9d4acd38c3d73d83721ccf9148256
parent7d11b64b18730423f2378060f23c0ba0147962ad
compiler: remove duplication of Named_object traversal

Adding type parameters was about to add a partial third version.
Remove the duplication to avoid that.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/375234
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h