Skip to content

Commit

Permalink
Remove move_type_to_new_typedef from process_*_typespec
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
  • Loading branch information
kamilrakoczy committed Mar 1, 2022
1 parent be8ef92 commit 71c4000
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions uhdm-plugin/UhdmAst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3301,13 +3301,6 @@ void UhdmAst::process_logic_typespec()
}
visit_one_to_many({vpiRange}, obj_h, [&](AST::AstNode *node) { packed_ranges.push_back(node); });
add_multirange_wire(current_node, packed_ranges, unpacked_ranges);
if (!current_node->str.empty()) {
auto top_module = find_ancestor({AST::AST_MODULE, AST::AST_PACKAGE, AST::AST_DESIGN});
if (!top_module) {
log_error("Couldn't find top module for typedef: %s\n", current_node->str.c_str());
}
move_type_to_new_typedef(top_module, current_node->clone());
}
}

void UhdmAst::process_int_typespec()
Expand All @@ -3321,13 +3314,6 @@ void UhdmAst::process_int_typespec()
packed_ranges.push_back(range);
add_multirange_wire(current_node, packed_ranges, unpacked_ranges);
current_node->is_signed = true;
if (!current_node->str.empty()) {
auto top_module = find_ancestor({AST::AST_MODULE, AST::AST_PACKAGE, AST::AST_DESIGN});
if (!top_module) {
log_error("Couldn't find top module for typedef: %s\n", current_node->str.c_str());
}
move_type_to_new_typedef(top_module, current_node);
}
}

void UhdmAst::process_string_var()
Expand Down Expand Up @@ -3380,13 +3366,6 @@ void UhdmAst::process_bit_typespec()
current_node->children.push_back(node);
}
});
if (!current_node->str.empty()) {
auto top_module = find_ancestor({AST::AST_MODULE, AST::AST_PACKAGE, AST::AST_DESIGN});
if (!top_module) {
log_error("Couldn't find top module for typedef: %s\n", current_node->str.c_str());
}
move_type_to_new_typedef(top_module, current_node);
}
}

void UhdmAst::process_repeat()
Expand Down

0 comments on commit 71c4000

Please sign in to comment.