compiler: pass a Location to import_expression
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Nov 2018 19:57:45 +0000 (19:57 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Nov 2018 19:57:45 +0000 (19:57 +0000)
commit593570593e0401d2c8cb34ced3efd0cd50e2638e
tree109a9c14cba0febe54dba78fdd2da46e4427cea9
parent98f33efc5a533f66abfb0e263be60e719baf5879
compiler: pass a Location to import_expression

    Separate the Location that import_expression uses when creating a new
    Expression from the Location used to report an error.  This is a step
    toward importing expressions for inlined functions.  This is a pure
    refactoring that does not affect compiler behavior.

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

From-SVN: r266525
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/statements.h
gcc/go/gofrontend/types.cc