compiler: export type for string and bool constants
authorIan Lance Taylor <iant@golang.org>
Wed, 14 Oct 2020 22:30:00 +0000 (15:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Oct 2020 19:34:07 +0000 (12:34 -0700)
commit4f4f649d66e37954ffc05725662e966ae9a4d12f
tree57ce1f921116bf97cee644bb1e8e22b11208189c
parentb7beab8282a877da06713bf38f9440ccc82f10b9
compiler: export type for string and bool constants

Also consolidate the identical code for constant type export into a
pair of static methods.

Fixes golang/go#35739

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