vhdlpp: Minor changes to write_to_stream functions.

This commit is contained in:
Maciej Suminski 2016-01-22 10:58:35 +01:00
parent b79f0d763f
commit 00f5785f2c
2 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,7 @@ void IfSequential::write_to_stream(std::ostream&fd)
{
fd << "if ";
cond_->write_to_stream(fd);
fd << " then " << endl;
fd << " then" << endl;
for (list<SequentialStmt*>::iterator cur = if_.begin()
; cur != if_.end() ; ++cur)

View File

@ -82,7 +82,8 @@ void SubprogramBody::write_to_stream(ostream&fd) const
} else {
fd << "--empty body" << endl;
}
fd << "end function;" << endl;
fd << "end function " << header_->name() << ";" << endl;
}
SubprogramHeader::SubprogramHeader(perm_string nam, list<InterfacePort*>*ports,