]> git.ipfire.org Git - thirdparty/gcc.git/commit
go/internal/gccgoimporter: ignore unexported and imported names
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 7 Jun 2019 00:07:50 +0000 (00:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 7 Jun 2019 00:07:50 +0000 (00:07 +0000)
commitffaa3a1c7433742373c2a71257d573d234428270
treeb7dc46662e228320e2254df24d28d28ce6fd2f53
parent93cbebde76ac7de2d69b223d99acb39e0370687f
go/internal/gccgoimporter: ignore unexported and imported names

    Due to inlining, we can now see unexported functions and variables,
    and functions and variables imported from different packages.
    Ignore them rather than reporting them from this package.

    Handle $hash and $equal functions consistently, so that we discard the
    inline body if there is one.

    Ignore names created for result parameters for inlining purposes.

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

From-SVN: r272023
gcc/go/gofrontend/MERGE
libgo/go/go/internal/gccgoimporter/parser.go