Tidy up output
This commit is contained in:
parent
c70fb4ba08
commit
5cfe7ea0aa
|
|
@ -405,7 +405,8 @@ static int draw_case(vhdl_process *proc, stmt_container *container,
|
|||
return 1;
|
||||
|
||||
vhdl_case_branch *branch = new vhdl_case_branch(when);
|
||||
|
||||
vhdlcase->add_branch(branch);
|
||||
|
||||
draw_stmt(proc, branch->get_container(), ivl_stmt_case_stmt(stmt, i));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -781,7 +781,6 @@ void vhdl_case_branch::emit(std::ofstream &of, int level) const
|
|||
of << "when ";
|
||||
when_->emit(of, level);
|
||||
of << " =>";
|
||||
newline(of, indent(level));
|
||||
stmts_.emit(of, indent(level));
|
||||
}
|
||||
|
||||
|
|
@ -795,7 +794,12 @@ void vhdl_case_stmt::emit(std::ofstream &of, int level) const
|
|||
of << "case ";
|
||||
test_->emit(of, level);
|
||||
of << " is";
|
||||
emit_children<vhdl_case_branch>(of, branches_, level);
|
||||
newline(of, indent(level));
|
||||
|
||||
case_branch_list_t::const_iterator it;
|
||||
for (it = branches_.begin(); it != branches_.end(); ++it)
|
||||
(*it)->emit(of, level);
|
||||
|
||||
of << "end case;";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue