Report some missed emit error count.
This commit is contained in:
parent
a46c66130b
commit
e6a9b5532a
|
|
@ -161,7 +161,7 @@ int ProcessStatement::emit(ostream&out, Entity*ent, Architecture*arc)
|
|||
|
||||
for (list<SequentialStmt*>::iterator cur = statements_list_.begin()
|
||||
; cur != statements_list_.end() ; ++cur) {
|
||||
(*cur)->emit(out, ent, arc);
|
||||
errors += (*cur)->emit(out, ent, arc);
|
||||
}
|
||||
|
||||
out << "end" << endl;
|
||||
|
|
|
|||
|
|
@ -62,11 +62,11 @@ int Entity::emit(ostream&out)
|
|||
break;
|
||||
case PORT_IN:
|
||||
out << "input ";
|
||||
decl.emit(out, port->name);
|
||||
errors += decl.emit(out, port->name);
|
||||
break;
|
||||
case PORT_OUT:
|
||||
out << "output ";
|
||||
decl.emit(out, port->name);
|
||||
errors += decl.emit(out, port->name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ int SignalSeqAssignment::emit(ostream&out, Entity*ent, Architecture*arc)
|
|||
} else {
|
||||
Expression*tmp = waveform_.front();
|
||||
out << " <= ";
|
||||
tmp->emit(out, ent, arc);
|
||||
errors += tmp->emit(out, ent, arc);
|
||||
out << ";" << endl;
|
||||
}
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ int VariableSeqAssignment::emit(ostream&out, Entity*ent, Architecture*arc)
|
|||
errors += lval_->emit(out, ent, arc);
|
||||
|
||||
out << " = ";
|
||||
rval_->emit(out, ent, arc);
|
||||
errors += rval_->emit(out, ent, arc);
|
||||
out << ";" << endl;
|
||||
|
||||
return errors;
|
||||
|
|
|
|||
Loading…
Reference in New Issue