compiler: connect the concrete type and the placeholder for circular types
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Jul 2018 17:21:10 +0000 (17:21 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Jul 2018 17:21:10 +0000 (17:21 +0000)
commit4161493a3034388925048bf477bbb9238ff6643e
tree7b100106e84612bbb0de05a8e889dac1d7530319
parent5485812caf9865ec09ff5391e0794bbaffd20751
compiler: connect the concrete type and the placeholder for circular types

    Previously, when creating the backend representation of a
    circular type, we resolve the placeholder to a
    circular_pointer_type. The backend doesn't know what the
    concrete type is.

    This CL changes it to resolve the placeholder to the concrete
    type instead, so the backend may have better knowledge of the
    concrete type.

    Reviewed-on: https://go-review.googlesource.com/123738

From-SVN: r262830
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h