@@ -3320,13 +3320,6 @@ void UhdmAst::process_logic_typespec()
3320
3320
}
3321
3321
visit_one_to_many ({vpiRange}, obj_h, [&](AST::AstNode *node) { packed_ranges.push_back (node); });
3322
3322
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
- }
3330
3323
}
3331
3324
3332
3325
void UhdmAst::process_int_typespec ()
@@ -3340,13 +3333,6 @@ void UhdmAst::process_int_typespec()
3340
3333
packed_ranges.push_back (range);
3341
3334
add_multirange_wire (current_node, packed_ranges, unpacked_ranges);
3342
3335
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
- }
3350
3336
}
3351
3337
3352
3338
void UhdmAst::process_string_var ()
@@ -3399,13 +3385,6 @@ void UhdmAst::process_bit_typespec()
3399
3385
current_node->children .push_back (node);
3400
3386
}
3401
3387
});
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
- }
3409
3388
}
3410
3389
3411
3390
void UhdmAst::process_repeat ()
0 commit comments