IdString::str().substr() -> IdString::substr()
authorEddie Hung <eddie@fpgeh.com>
Wed, 7 Aug 2019 02:08:33 +0000 (19:08 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 7 Aug 2019 02:08:33 +0000 (19:08 -0700)
frontends/ast/simplify.cc
passes/hierarchy/hierarchy.cc

index e947125bfd4712f61916b2261604dadd842193ec..b27780faea2e9745b2b0328fe3a2a1bb072c5f3e 100644 (file)
@@ -2319,7 +2319,7 @@ skip_dynamic_range_lvalue_expansion:;
                                if (attr.first.str().rfind("\\via_celltype_defparam_", 0) == 0)
                                {
                                        AstNode *cell_arg = new AstNode(AST_PARASET, attr.second->clone());
-                                       cell_arg->str = RTLIL::escape_id(attr.first.str().substr(strlen("\\via_celltype_defparam_")));
+                                       cell_arg->str = RTLIL::escape_id(attr.first.substr(strlen("\\via_celltype_defparam_")));
                                        cell->children.push_back(cell_arg);
                                }
 
index ff5c3b6a144957ce301fdac467381bac3885c40f..1319225ffb5c38a38f9004c87760b9379d598291 100644 (file)
@@ -203,7 +203,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
                        int idx = std::stoi(cell->type.substr(pos_idx + 1, pos_num));
                        int num = std::stoi(cell->type.substr(pos_num + 1, pos_type));
                        array_cells[cell] = std::pair<int, int>(idx, num);
-                       cell->type = cell->type.str().substr(pos_type + 1);
+                       cell->type = cell->type.substr(pos_type + 1);
                }
                dict<RTLIL::IdString, RTLIL::Module*> interfaces_to_add_to_submodule;
                dict<RTLIL::IdString, RTLIL::IdString> modports_used_in_submodule;