Skip to content

Commit 7ac20f1

Browse files
authored
Merge pull request #259 from antmicro/fix-typedef
Remove move_type_to_new_typedef from process_*_typespec
2 parents 525c6af + 71c4000 commit 7ac20f1

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

uhdm-plugin/UhdmAst.cc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3320,13 +3320,6 @@ void UhdmAst::process_logic_typespec()
33203320
}
33213321
visit_one_to_many({vpiRange}, obj_h, [&](AST::AstNode *node) { packed_ranges.push_back(node); });
33223322
add_multirange_wire(current_node, packed_ranges, unpacked_ranges);
3323-
if (!current_node->str.empty()) {
3324-
auto top_module = find_ancestor({AST::AST_MODULE, AST::AST_PACKAGE, AST::AST_DESIGN});
3325-
if (!top_module) {
3326-
log_error("Couldn't find top module for typedef: %s\n", current_node->str.c_str());
3327-
}
3328-
move_type_to_new_typedef(top_module, current_node->clone());
3329-
}
33303323
}
33313324

33323325
void UhdmAst::process_int_typespec()
@@ -3340,13 +3333,6 @@ void UhdmAst::process_int_typespec()
33403333
packed_ranges.push_back(range);
33413334
add_multirange_wire(current_node, packed_ranges, unpacked_ranges);
33423335
current_node->is_signed = true;
3343-
if (!current_node->str.empty()) {
3344-
auto top_module = find_ancestor({AST::AST_MODULE, AST::AST_PACKAGE, AST::AST_DESIGN});
3345-
if (!top_module) {
3346-
log_error("Couldn't find top module for typedef: %s\n", current_node->str.c_str());
3347-
}
3348-
move_type_to_new_typedef(top_module, current_node);
3349-
}
33503336
}
33513337

33523338
void UhdmAst::process_string_var()
@@ -3399,13 +3385,6 @@ void UhdmAst::process_bit_typespec()
33993385
current_node->children.push_back(node);
34003386
}
34013387
});
3402-
if (!current_node->str.empty()) {
3403-
auto top_module = find_ancestor({AST::AST_MODULE, AST::AST_PACKAGE, AST::AST_DESIGN});
3404-
if (!top_module) {
3405-
log_error("Couldn't find top module for typedef: %s\n", current_node->str.c_str());
3406-
}
3407-
move_type_to_new_typedef(top_module, current_node);
3408-
}
34093388
}
34103389

34113390
void UhdmAst::process_repeat()

0 commit comments

Comments
 (0)