vhdlpp: Variable::write_to_stream().

This commit is contained in:
Maciej Suminski 2015-02-03 14:28:18 +01:00
parent 1a367c84b6
commit dae3410dcd
2 changed files with 8 additions and 0 deletions

View File

@ -77,3 +77,10 @@ int Variable::emit(ostream&out, Entity*, ScopeBase*)
out << ";" << endl;
return errors;
}
void Variable::write_to_stream(std::ostream&fd)
{
fd << "variable " << peek_name() << " : ";
peek_type()->write_to_stream(fd);
fd << ";" << endl;
}

View File

@ -80,6 +80,7 @@ class Variable : public SigVarBase {
Variable(perm_string name, const VType*type);
int emit(ostream&out, Entity*ent, ScopeBase*scope);
void write_to_stream(std::ostream&fd);
};
inline void SigVarBase::count_ref_sequ()