From d21277f1b93e55e91ec8914ceaf22e7c4e1c3e8a Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Thu, 31 Jul 2008 21:17:49 +0100 Subject: [PATCH] Tidy up whitespace in output --- tgt-vhdl/vhdl_syntax.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgt-vhdl/vhdl_syntax.cc b/tgt-vhdl/vhdl_syntax.cc index 7378cf4ce..e31f755a1 100644 --- a/tgt-vhdl/vhdl_syntax.cc +++ b/tgt-vhdl/vhdl_syntax.cc @@ -278,6 +278,7 @@ vhdl_component_decl *vhdl_component_decl::component_decl_for(vhdl_entity *ent) void vhdl_component_decl::emit(std::ostream &of, int level) const { + newline(of, level); emit_comment(of, level); of << "component " << name_ << " is"; @@ -815,6 +816,7 @@ vhdl_function::vhdl_function(const char *name, vhdl_type *ret_type) void vhdl_function::emit(std::ostream &of, int level) const { + newline(of, level); of << "function " << name_ << " ("; emit_children(of, scope_.get_decls(), level, ";"); of << ") "; @@ -826,7 +828,6 @@ void vhdl_function::emit(std::ostream &of, int level) const of << " return Verilog_Result;"; newline(of, level); of << "end function;"; - newline(of, level); } void vhdl_param_decl::emit(std::ostream &of, int level) const