projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95e9374
)
Fixed generation of newlines in "dump" output
author
Clifford Wolf
<clifford@clifford.at>
Mon, 10 Jun 2013 10:38:02 +0000
(12:38 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Mon, 10 Jun 2013 10:38:02 +0000
(12:38 +0200)
backends/ilang/ilang_backend.cc
patch
|
blob
|
history
diff --git
a/backends/ilang/ilang_backend.cc
b/backends/ilang/ilang_backend.cc
index 9c74e61ca9da5025c1aa2c7086f58916dc040d22..503164d43e1c8e2b8e0a6cb54df95845198f284e 100644
(file)
--- a/
backends/ilang/ilang_backend.cc
+++ b/
backends/ilang/ilang_backend.cc
@@
-323,10
+323,11
@@
void ILANG_BACKEND::dump_module(FILE *f, std::string indent, const RTLIL::Module
void ILANG_BACKEND::dump_design(FILE *f, const RTLIL::Design *design, bool only_selected)
{
for (auto it = design->modules.begin(); it != design->modules.end(); it++) {
- if (
it != design->modules.begin() || only_selected)
- fprintf(f, "\n");
- if (!only_selected || design->selected(it->second))
+ if (
!only_selected || design->selected(it->second)) {
+ if (only_selected)
+ fprintf(f, "\n");
dump_module(f, "", it->second, design, only_selected);
+ }
}
}