diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-21 16:00:50 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-21 16:00:50 +0000 |
commit | 1eae365b9861c6341eac8af4b5cc895aa9e668e1 (patch) | |
tree | 4bb0fd6c1318f67884148c8e8cbf581528fbefb6 /gcc/go/gofrontend/statements.h | |
parent | f7b51129d8a7b6c188e9cf801f7dd8e2bd06c2a3 (diff) | |
download | gcc-1eae365b9861c6341eac8af4b5cc895aa9e668e1.tar.gz |
compiler: Remove obsolete hidden_fields_are_ok code.
The language used to forbid assigning structs with hidden
fields, but that was changed before the Go 1 release. At the
time the change was experimental, so I left the old code in
the compiler. At this point it's clearly not experimental, so
this removes the unused code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216519 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gofrontend/statements.h')
-rw-r--r-- | gcc/go/gofrontend/statements.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gcc/go/gofrontend/statements.h b/gcc/go/gofrontend/statements.h index 7d9bcfde8b7..9bb0fb5aa8d 100644 --- a/gcc/go/gofrontend/statements.h +++ b/gcc/go/gofrontend/statements.h @@ -514,8 +514,7 @@ class Temporary_statement : public Statement public: Temporary_statement(Type* type, Expression* init, Location location) : Statement(STATEMENT_TEMPORARY, location), - type_(type), init_(init), bvariable_(NULL), are_hidden_fields_ok_(false), - is_address_taken_(false) + type_(type), init_(init), bvariable_(NULL), is_address_taken_(false) { } // Return the type of the temporary variable. @@ -527,11 +526,6 @@ class Temporary_statement : public Statement init() const { return this->init_; } - // Note that it is OK for this statement to set hidden fields. - void - set_hidden_fields_are_ok() - { this->are_hidden_fields_ok_ = true; } - // Record that something takes the address of this temporary // variable. void @@ -569,9 +563,6 @@ class Temporary_statement : public Statement Expression* init_; // The backend representation of the temporary variable. Bvariable* bvariable_; - // True if this statement may set hidden fields when assigning the - // value to the temporary. This is used for generated method stubs. - bool are_hidden_fields_ok_; // True if something takes the address of this temporary variable. bool is_address_taken_; }; @@ -619,7 +610,7 @@ class Return_statement : public Statement public: Return_statement(Expression_list* vals, Location location) : Statement(STATEMENT_RETURN, location), - vals_(vals), are_hidden_fields_ok_(false), is_lowered_(false) + vals_(vals), is_lowered_(false) { } // The list of values being returned. This may be NULL. @@ -627,12 +618,6 @@ class Return_statement : public Statement vals() const { return this->vals_; } - // Note that it is OK for this return statement to set hidden - // fields. - void - set_hidden_fields_are_ok() - { this->are_hidden_fields_ok_ = true; } - protected: int do_traverse(Traverse* traverse) @@ -657,9 +642,6 @@ class Return_statement : public Statement private: // Return values. This may be NULL. Expression_list* vals_; - // True if this statement may pass hidden fields in the return - // value. This is used for generated method stubs. - bool are_hidden_fields_ok_; // True if this statement has been lowered. bool is_lowered_; }; |