compiler: export indexed type data, read unexported types lazily
commit80526a7d32ac03a465365e61ff1c6050ea3bc0d8
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Oct 2018 02:46:41 +0000 (23 02:46 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Oct 2018 02:46:41 +0000 (23 02:46 +0000)
tree3a518e1527a037ab081f889246b330e2eb42669a
parent7d60f4681705423be89027f202bfb3c847b249a4
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265409 138bc75d-0d04-0410-961f-82ee72b054a4
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