compiler: export indexed type data, read unexported types lazily
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Oct 2018 02:46:41 +0000 (02:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Oct 2018 02:46:41 +0000 (02:46 +0000)
commita847d2b7b142a86b02296a7766a1bc29f36cf7a8
tree3a518e1527a037ab081f889246b330e2eb42669a
parent91f4d9e994869ad099bf02012e4d1371f00ade4d
compiler: export indexed type data, read unexported types lazily

    Introduce a new "types" command to the export data to record the
    number of types and the size of their export data. It is immediately
    followed by new "type" commands that can be indexed. Parse all the
    exported types immediately so that we register them, but parse other
    type data only as needed.

    Reviewed-on: https://go-review.googlesource.com/c/143022

From-SVN: r265409
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/export.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/import.h
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h
libgo/go/go/internal/gccgoimporter/parser.go