projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22aabe0
)
Fixed dumping of timing() { .. } block in libparse
author
Clifford Wolf
<clifford@clifford.at>
Sun, 9 Mar 2014 14:16:07 +0000
(15:16 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Sun, 9 Mar 2014 14:16:07 +0000
(15:16 +0100)
passes/techmap/libparse.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/libparse.cc
b/passes/techmap/libparse.cc
index 8cbb8e2be81dc5de11ce77becd6b63c8199fbbbd..2ff551537490815eac9f8444a47b13ef56b204e7 100644
(file)
--- a/
passes/techmap/libparse.cc
+++ b/
passes/techmap/libparse.cc
@@
-63,9
+63,10
@@
void LibertyAst::dump(FILE *f, std::string indent, std::string path, bool path_o
}
fprintf(f, "%s%s", indent.c_str(), id.c_str());
- if (!args.empty()) {
+ if (!args.empty() || !children.empty()) {
+ fprintf(f, "(");
for (size_t i = 0; i < args.size(); i++)
- fprintf(f, "%s%s", i > 0 ? ", " : "
(
", args[i].c_str());
+ fprintf(f, "%s%s", i > 0 ? ", " : "", args[i].c_str());
fprintf(f, ")");
}
if (!value.empty())