compiler: refactoring in Export class to encapsulate type refs map
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 2 Jul 2019 01:39:19 +0000 (01:39 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 2 Jul 2019 01:39:19 +0000 (01:39 +0000)
commit9badab5db524a44b467d3d4f5a17b3c9be252ec4
tree9107a0e2ee18a9d20e6b3e71da0f017675e79319
parentb731572b8a1ef42bd21574ddc95616a26e719264
compiler: refactoring in Export class to encapsulate type refs map

    Convert the Export::type_refs map from a static object to a field
    contained (indirectly, via an impl class) in Export itself, for better
    encapsulation and to be able to reclaim its memory when exporting is
    done. No change in compiler functionality.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/184170

From-SVN: r272919
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/export.h