mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-20 21:03:40 +00:00
Preparations for RTLIL::IdString redesign: cleanup of existing code
This commit is contained in:
parent
75ffd1643c
commit
14412e6c95
12 changed files with 71 additions and 32 deletions
|
@ -325,7 +325,7 @@ void AstNode::dumpVlog(FILE *f, std::string indent)
|
|||
}
|
||||
|
||||
for (auto &it : attributes) {
|
||||
fprintf(f, "%s" "(* %s = ", indent.c_str(), id2vl(it.first).c_str());
|
||||
fprintf(f, "%s" "(* %s = ", indent.c_str(), id2vl(it.first.str()).c_str());
|
||||
it.second->dumpVlog(f, "");
|
||||
fprintf(f, " *)%s", indent.empty() ? "" : "\n");
|
||||
}
|
||||
|
@ -958,7 +958,7 @@ AstModule::~AstModule()
|
|||
// create a new parametric module (when needed) and return the name of the generated module
|
||||
RTLIL::IdString AstModule::derive(RTLIL::Design *design, std::map<RTLIL::IdString, RTLIL::Const> parameters)
|
||||
{
|
||||
std::string stripped_name = name;
|
||||
std::string stripped_name = name.str();
|
||||
|
||||
if (stripped_name.substr(0, 9) == "$abstract")
|
||||
stripped_name = stripped_name.substr(9);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue