mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-28 00:48:46 +00:00
ast, read_verilog: unify location types, reduce filename copying
This commit is contained in:
parent
6ac9f79de6
commit
653c002ad0
12 changed files with 715 additions and 693 deletions
|
@ -47,7 +47,7 @@ using namespace VERILOG_FRONTEND;
|
|||
std::string ConstParser::fmt_maybe_loc(std::string msg) {
|
||||
std::string s;
|
||||
|
||||
s += stringf("%s:%d:", loc.filename, loc.first_line);
|
||||
s += stringf("%s:%d:", loc.begin.filename->c_str(), loc.begin.line);
|
||||
|
||||
s += msg;
|
||||
return s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue