compiler: don't read known type, simplify Import::finalize_methods
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 27 Sep 2019 17:51:43 +0000 (17:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 27 Sep 2019 17:51:43 +0000 (17:51 +0000)
commit37ed4c3269f940a3a064e320331aed38890fb8c0
treedebbcd2618d12faca1022453affd57f60e070665
parent51c3b7c6ec20262f2a4698f42e533c28d2c38a87
compiler: don't read known type, simplify Import::finalize_methods

    With the current export format, if we already know the type, we don't
    have to read and parse the definition.

    We only use the finalizer in Import::finalize_methods, so make it a
    local variable.  To match Finalize_methods::type, only put struct
    types into real_for_named.

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

From-SVN: r276188
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/import.h