mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-24 10:59:40 +00:00
Convert RTLIL::unescape_id of IdString to unescape()
This commit is contained in:
parent
8bbc3c359c
commit
75dcbe03c6
35 changed files with 636 additions and 114 deletions
|
|
@ -89,7 +89,7 @@ struct CxxStruct {
|
|||
}
|
||||
f.print("\n\t\ttemplate <typename T> void visit(T &&fn) {{\n");
|
||||
for (auto p : types) {
|
||||
f.print("\t\t\tfn(\"{}\", {});\n", RTLIL::unescape_id(p.first), scope(p.first, p.first));
|
||||
f.print("\t\t\tfn(\"{}\", {});\n", p.first.unescape(), scope(p.first, p.first));
|
||||
}
|
||||
f.print("\t\t}}\n");
|
||||
f.print("\t}};\n\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue