compiler: use const std::string& in a couple of places
authorIan Lance Taylor <iant@golang.org>
Mon, 11 May 2020 22:28:55 +0000 (15:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 11 May 2020 23:11:04 +0000 (16:11 -0700)
commit2f4aeb2f53d96690953fabab487fd1d922f1c95f
tree8ce789729e84cc5711d426540c10e047cda5da28
parent89ce32902a674598e969a7b30980537ee23079b7
compiler: use const std::string& in a couple of places

Use a reference to avoid copying a std::string.

Fixes go/94766

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