vhdlpp: Added ExpAttribute::write_to_stream().
This commit is contained in:
parent
1333bc54a2
commit
6887c82540
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue