mirror of https://github.com/YosysHQ/yosys.git
Strip quotes around fileinfo strings
Yosys puts quotes around the string that represents the fileinfo whereas firrtl does not. So when firrtl sees quotes, it escapes them with an extra backslash which makes it hard to read afterwards.
This commit is contained in:
parent
c0b2a9af2e
commit
21492914a2
|
@ -106,7 +106,11 @@ std::string getFileinfo(dict<RTLIL::IdString, RTLIL::Const> attributes)
|
|||
fileinfo << "]";
|
||||
}
|
||||
}
|
||||
return fileinfo.str();
|
||||
|
||||
std::string fileinfo_str = fileinfo.str();
|
||||
fileinfo_str.erase(std::remove(fileinfo_str.begin(), fileinfo_str.end(), '\"'), fileinfo_str.end());
|
||||
|
||||
return fileinfo_str;
|
||||
}
|
||||
|
||||
// Get a port direction with respect to a specific module.
|
||||
|
|
Loading…
Reference in New Issue