Removing extra \n when no functions are defined.

This commit is contained in:
Stefano Sanfilippo 2014-12-02 16:28:01 +01:00
parent 2f66c31729
commit c4dd6e3c6b

View File

@ -231,7 +231,9 @@ void Program::emit(std::ostream &stream, int indent) {
stream << ";\n";
}
stream << "\n";
if (!functions.empty()) {
stream << "\n";
}
for (Function *f: functions) {
f->emit(stream);