Fixed enum typedefs.

This commit is contained in:
Maciej Suminski 2014-08-28 11:04:25 +02:00
parent a67f18f8ef
commit 684c2fe19e
1 changed files with 8 additions and 1 deletions

View File

@ -219,7 +219,14 @@ int VTypeDef::emit_decl(ostream&out, perm_string name, bool reg_flag) const
else
out << "wire ";
errors += type_->emit_def(out, name);
if(dynamic_cast<const VTypeArray*>(type_)) {
errors += type_->emit_def(out, name);
} else {
assert(name_ != empty_perm_string);
cout << "\\" << name_;
emit_name(out, name);
}
return errors;
}