diff --git a/vhdlpp/vtype.h b/vhdlpp/vtype.h index ed264e762..d8c5f6b9a 100644 --- a/vhdlpp/vtype.h +++ b/vhdlpp/vtype.h @@ -270,6 +270,8 @@ class VTypeRecord : public VType { void show(std::ostream&) const; int emit_def(std::ostream&out, perm_string name) const; + bool can_be_packed() const { return true; } + const element_t* element_by_name(perm_string name) const; private: @@ -298,6 +300,8 @@ class VTypeDef : public VType { int emit_typedef(std::ostream&out, typedef_context_t&ctx) const; int emit_def(std::ostream&out, perm_string name) const; + + bool can_be_packed() const { return type_->can_be_packed(); } private: int emit_decl(std::ostream&out, perm_string name, bool reg_flag) const;