diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-20 16:02:55 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-20 16:02:55 +0000 |
commit | d58952aefb03632bbb5b441d5c0bd330711f0af1 (patch) | |
tree | d046e56bfbd6a40106ae6ab96fafc954f1dfc955 /gcc/go/gofrontend/expressions.h | |
parent | 648f8fc59b2cc39abd24f4c22388b346cdebcc31 (diff) | |
parent | 50221fae802a10fafe95e61d40504a58da33e98f (diff) | |
download | gcc-linaro-dev/sve.tar.gz |
Merge trunk into svelinaro-dev/sve
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 14 |
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. |