vhdlpp: Add 'sub' prefix for subtypes while emitting packages.
This commit is contained in:
parent
a33bbecc98
commit
ddc204391e
|
|
@ -74,6 +74,9 @@ void Package::write_to_stream(ostream&fd) const
|
|||
if (is_global_type(cur->first))
|
||||
continue;
|
||||
|
||||
if(!dynamic_cast<const VTypeDef*>(cur->second))
|
||||
fd << "sub";
|
||||
|
||||
fd << "type " << cur->first << " is ";
|
||||
cur->second->write_type_to_stream(fd);
|
||||
fd << "; -- imported" << endl;
|
||||
|
|
@ -85,6 +88,9 @@ void Package::write_to_stream(ostream&fd) const
|
|||
if (is_global_type(cur->first))
|
||||
continue;
|
||||
|
||||
if(!dynamic_cast<const VTypeDef*>(cur->second))
|
||||
fd << "sub";
|
||||
|
||||
fd << "type " << cur->first << " is ";
|
||||
cur->second->write_type_to_stream(fd);
|
||||
fd << ";" << endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue