Skip to content

Commit 56a668a

Browse files
committed
Visit typedefs defined in the file level
Signed-off-by: Kamil Rakoczy <[email protected]>
1 parent 9ee3057 commit 56a668a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

uhdm-plugin/UhdmAst.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,11 +1026,12 @@ AST::AstNode *UhdmAst::find_ancestor(const std::unordered_set<AST::AstNodeType>
10261026
void UhdmAst::process_design()
10271027
{
10281028
current_node = make_ast_node(AST::AST_DESIGN);
1029-
visit_one_to_many({UHDM::uhdmallInterfaces, UHDM::uhdmallPackages, UHDM::uhdmallModules, UHDM::uhdmtopModules}, obj_h, [&](AST::AstNode *node) {
1030-
if (node) {
1031-
shared.top_nodes[node->str] = node;
1032-
}
1033-
});
1029+
visit_one_to_many({UHDM::uhdmallInterfaces, UHDM::uhdmallPackages, UHDM::uhdmallModules, UHDM::uhdmtopModules, vpiTypedef}, obj_h,
1030+
[&](AST::AstNode *node) {
1031+
if (node) {
1032+
shared.top_nodes[node->str] = node;
1033+
}
1034+
});
10341035
#ifdef BUILD_UPSTREAM
10351036
for (auto pair : shared.top_nodes) {
10361037
if (!pair.second)

0 commit comments

Comments
 (0)