vhdlpp: Added ExpAttribute::write_to_stream().

This commit is contained in:
Maciej Suminski 2014-10-08 10:21:03 +02:00
parent 1333bc54a2
commit 6887c82540
2 changed files with 4 additions and 3 deletions

View File

@ -111,9 +111,10 @@ void ExpArithmetic::write_to_stream(ostream&out)
out << ")";
}
void ExpAttribute::write_to_stream(ostream&)
void ExpAttribute::write_to_stream(ostream&fd)
{
ivl_assert(*this, !"Not supported");
base_->write_to_stream(fd);
fd << "'" << name_;
}
void ExpBitstring::write_to_stream(ostream&fd)

View File

@ -70,7 +70,7 @@ int Subprogram::emit_package(ostream&fd) const
if (statements_) {
for (list<SequentialStmt*>::const_iterator cur = statements_->begin()
; cur != statements_->end() ; ++cur) {
errors += (*cur)->emit(fd, 0, 0);
errors += (*cur)->emit(fd, NULL, NULL);
}
} else {
fd << " begin /* empty body */ end" << endl;