diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-01 08:06:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-01 08:06:16 +0000 |
commit | 3e68d6d75a599806335a90b73b8c0e404c1fc021 (patch) | |
tree | 4be7e6271bd15650eafafeac4e96b4899f1d47d4 /gcc/go/gofrontend/expressions.h | |
parent | 04f7a48eddb72c733d6ae586bcaace89773b3172 (diff) | |
download | gcc-3e68d6d75a599806335a90b73b8c0e404c1fc021.zip gcc-3e68d6d75a599806335a90b73b8c0e404c1fc021.tar.gz gcc-3e68d6d75a599806335a90b73b8c0e404c1fc021.tar.bz2 |
compiler/runtime: Copy channel implementation from master library.
From-SVN: r181874
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 74d1281..6da507b 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -1947,7 +1947,7 @@ class Receive_expression : public Expression public: Receive_expression(Expression* channel, Location location) : Expression(EXPRESSION_RECEIVE, location), - channel_(channel), for_select_(false) + channel_(channel) { } // Return the channel. @@ -1955,11 +1955,6 @@ class Receive_expression : public Expression channel() { return this->channel_; } - // Note that this is for a select statement. - void - set_for_select() - { this->for_select_ = true; } - protected: int do_traverse(Traverse* traverse) @@ -1998,8 +1993,6 @@ class Receive_expression : public Expression private: // The channel from which we are receiving. Expression* channel_; - // Whether this is for a select statement. - bool for_select_; }; #endif // !defined(GO_EXPRESSIONS_H) |