Merge pull request #514 from antmicro/mglb/FixTests
systemverilog-plugin: Remove temporary test files.
diff --git a/systemverilog-plugin/UhdmAst.cc b/systemverilog-plugin/UhdmAst.cc
index aa511b4..99a4b04 100644
--- a/systemverilog-plugin/UhdmAst.cc
+++ b/systemverilog-plugin/UhdmAst.cc
@@ -1742,6 +1742,9 @@
visit_one_to_one({vpiElemTypespec}, obj_h, [&](AST::AstNode *node) {
if (node && node->type == AST::AST_STRUCT) {
auto str = current_node->str;
+ // unnamed array of named (struct) array
+ if (str.empty() && !node->str.empty())
+ str = node->str;
node->cloneInto(current_node);
current_node->str = str;
delete node;
@@ -2012,7 +2015,7 @@
current_node->children.push_back(pair.second);
}
} else {
- log_warning("Removing unused module: %s from the design.\n", pair.second->str.c_str());
+ log_warning("Removing unelaborated module: %s from the design.\n", pair.second->str.c_str());
// TODO: This should be properly erased from the module, but it seems that it's
// needed to resolve scope
delete pair.second;