vhdlpp: Simpler enum definitions storage.
This commit is contained in:
parent
f52de62729
commit
054dfdf0cf
|
|
@ -2621,9 +2621,6 @@ subtype_declaration
|
|||
tmp->set_definition($4);
|
||||
active_scope->incomplete_types.erase(cur);
|
||||
}
|
||||
if(const VTypeEnum*enum_type = dynamic_cast<const VTypeEnum*>($4)) {
|
||||
active_scope->use_enum(enum_type);
|
||||
}
|
||||
}
|
||||
delete[]$2;
|
||||
}
|
||||
|
|
@ -2710,9 +2707,6 @@ type_declaration
|
|||
tmp->set_definition($4);
|
||||
active_scope->incomplete_types.erase(cur);
|
||||
}
|
||||
if(const VTypeEnum*enum_type = dynamic_cast<const VTypeEnum*>($4)) {
|
||||
active_scope->use_enum(enum_type);
|
||||
}
|
||||
}
|
||||
delete[]$2;
|
||||
}
|
||||
|
|
@ -2737,6 +2731,7 @@ type_declaration
|
|||
type_definition
|
||||
: '(' enumeration_literal_list ')'
|
||||
{ VTypeEnum*tmp = new VTypeEnum($2);
|
||||
active_scope->use_enum(tmp);
|
||||
delete $2;
|
||||
$$ = tmp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue