vhdlpp: Changed the workaround for accessing localparam arrays & records.

This commit is contained in:
Maciej Suminski 2015-03-07 20:47:20 +01:00
parent 295e4e7dfb
commit d1dc98b7f7
1 changed files with 7 additions and 14 deletions

View File

@ -854,11 +854,6 @@ int ExpName::emit_workaround_(ostream&out, Entity*ent, ScopeBase*scope,
{
int errors = 0;
out << "{";
for(int i = field_size - 1; i >= 0; --i) {
if(i != field_size - 1)
out << ",";
out << "\\" << (prefix_.get() ? prefix_->name_ : name_) << " [";
for(list<index_t*>::const_iterator it = indices.begin();
@ -867,9 +862,7 @@ int ExpName::emit_workaround_(ostream&out, Entity*ent, ScopeBase*scope,
out << "+";
}
out << i << "]";
}
out << "}";
out << ":" << field_size << "]";
return errors;
}