compiler: remove LHS/RHS context determination for var exprs
authorThan McIntosh <thanm@google.com>
Wed, 15 Nov 2017 01:52:45 +0000 (01:52 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 15 Nov 2017 01:52:45 +0000 (01:52 +0000)
commitf60bea11ada835a0b007469816bd1130a2f9a77a
tree7e8327ba5a0ccf9a4397727a17e2745d7538d747
parentc2ad9885c01b3c5dd951dd707773de66cd7bb27c
compiler: remove LHS/RHS context determination for var exprs

    Remove the code that determined LHS/RHS context for var expressions
    (was needed previously for some instances of the back end). LHS/RHS
    context is computed by the back end in all cases, so no need to have
    this code in the front end any more.

    Reviewed-on: https://go-review.googlesource.com/77510

* go-gcc.cc (var_expression): Remove Varexpr_context parameter.

From-SVN: r254748
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/operator.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/wb.cc