diff options
author | Than McIntosh <thanm@google.com> | 2017-11-15 01:52:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-11-15 01:52:45 +0000 |
commit | f60bea11ada835a0b007469816bd1130a2f9a77a (patch) | |
tree | 7e8327ba5a0ccf9a4397727a17e2745d7538d747 /gcc/go/go-gcc.cc | |
parent | c2ad9885c01b3c5dd951dd707773de66cd7bb27c (diff) | |
download | gcc-f60bea11ada835a0b007469816bd1130a2f9a77a.zip gcc-f60bea11ada835a0b007469816bd1130a2f9a77a.tar.gz gcc-f60bea11ada835a0b007469816bd1130a2f9a77a.tar.bz2 |
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
Diffstat (limited to 'gcc/go/go-gcc.cc')
-rw-r--r-- | gcc/go/go-gcc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 04912f0..a50abdd 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -276,7 +276,7 @@ class Gcc_backend : public Backend { return this->make_expression(null_pointer_node); } Bexpression* - var_expression(Bvariable* var, Varexpr_context, Location); + var_expression(Bvariable* var, Location); Bexpression* indirect_expression(Btype*, Bexpression* expr, bool known_valid, Location); @@ -1256,7 +1256,7 @@ Gcc_backend::zero_expression(Btype* btype) // An expression that references a variable. Bexpression* -Gcc_backend::var_expression(Bvariable* var, Varexpr_context, Location location) +Gcc_backend::var_expression(Bvariable* var, Location location) { tree ret = var->get_tree(location); if (ret == error_mark_node) |