summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r--gcc/go/gofrontend/expressions.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h
index 0c742fd92df..9f58f497f8e 100644
--- a/gcc/go/gofrontend/expressions.h
+++ b/gcc/go/gofrontend/expressions.h
@@ -1298,7 +1298,7 @@ class Var_expression : public Expression
public:
Var_expression(Named_object* variable, Location location)
: Expression(EXPRESSION_VAR_REFERENCE, location),
- variable_(variable), in_lvalue_pos_(VE_rvalue)
+ variable_(variable)
{ }
// Return the variable.
@@ -1306,16 +1306,6 @@ class Var_expression : public Expression
named_object() const
{ return this->variable_; }
- // Does this var expression appear in an lvalue (assigned-to) context?
- bool
- in_lvalue_pos() const
- { return this->in_lvalue_pos_ == VE_lvalue; }
-
- // Mark a var_expression as appearing in an lvalue context.
- void
- set_in_lvalue_pos()
- { this->in_lvalue_pos_ = VE_lvalue; }
-
protected:
Expression*
do_lower(Gogo*, Named_object*, Statement_inserter*, int);
@@ -1346,8 +1336,6 @@ class Var_expression : public Expression
private:
// The variable we are referencing.
Named_object* variable_;
- // Set to TRUE if var expression appears in lvalue context
- Varexpr_context in_lvalue_pos_;
};
// A reference to a variable within an enclosing function.