From 7af8e400b3b174804d77bf73d32fc1e2d646d89a Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 15 Nov 2017 01:52:45 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254748 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/go/go-gcc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/go/go-gcc.cc') diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 04912f0ed01..a50abdd856b 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) -- cgit v1.2.1