aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/verilog/verilog_frontend.cc
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-02-23 07:19:52 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-02-23 07:22:26 +0000
commitf0afd65035fefebdea8edbd00c916c5f33e8a634 (patch)
tree5d34c5920dc230388c41bb7380e1241dec274fcf /frontends/verilog/verilog_frontend.cc
parent6edca05793197a846bbfb0329e836c87fa5aabb6 (diff)
downloadyosys-f0afd65035fefebdea8edbd00c916c5f33e8a634.tar.gz
yosys-f0afd65035fefebdea8edbd00c916c5f33e8a634.tar.bz2
yosys-f0afd65035fefebdea8edbd00c916c5f33e8a634.zip
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.cc2
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);
}