3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-20 11:22:05 +00:00

read_verilog, ast: use unified locations in errors and simplify dependencies

This commit is contained in:
Emil J. Tywoniak 2025-07-09 15:24:34 +02:00
parent 41d9a1b88e
commit 56058b3ed4
7 changed files with 16 additions and 23 deletions

View file

@ -51,7 +51,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)
err_at_ast(node->location, "Found DPI function %s.\n", node->str.c_str());
err_at_loc(node->location, "Found DPI function %s.\n", node->str.c_str());
for (auto& child : node->children)
error_on_dpi_function(child.get());
}