diff options
author | Claire Wolf <clifford@clifford.at> | 2020-03-03 08:38:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 08:38:32 -0800 |
commit | b597f85b13b5369398350ef4ef43b7b2521eb140 (patch) | |
tree | 18ea3d52b5927ea1491162458e16cfcfd3280418 /frontends/verilog/verilog_frontend.cc | |
parent | 91892465e1af2bcb5ec348b86ba4e566b040cb12 (diff) | |
parent | f80fe8dc22ca2b3639b7b0bbff69458addb05432 (diff) | |
download | yosys-b597f85b13b5369398350ef4ef43b7b2521eb140.tar.gz yosys-b597f85b13b5369398350ef4ef43b7b2521eb140.tar.bz2 yosys-b597f85b13b5369398350ef4ef43b7b2521eb140.zip |
Merge pull request #1718 from boqwxp/precise_locations
Closes #1717. Add more precise Verilog source location information to AST and RTLIL nodes.
Diffstat (limited to 'frontends/verilog/verilog_frontend.cc')
-rw-r--r-- | frontends/verilog/verilog_frontend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_frontend.cc b/frontends/verilog/verilog_frontend.cc index 058d750c3..42eabc02d 100644 --- a/frontends/verilog/verilog_frontend.cc +++ b/frontends/verilog/verilog_frontend.cc @@ -42,7 +42,7 @@ static std::list<std::vector<std::string>> verilog_defaults_stack; static void error_on_dpi_function(AST::AstNode *node) { if (node->type == AST::AST_DPI_FUNCTION) - log_file_error(node->filename, node->linenum, "Found DPI function %s.\n", node->str.c_str()); + log_file_error(node->filename, node->location.first_line, "Found DPI function %s.\n", node->str.c_str()); for (auto child : node->children) error_on_dpi_function(child); } |