From: Clifford Wolf Date: Fri, 3 Oct 2014 17:21:04 +0000 (+0200) Subject: sort cell types in "stat" output by name X-Git-Tag: yosys-0.4~92 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9dea161321c7a3fb47b5e085f91b4ecf40c9e209;p=yosys.git sort cell types in "stat" output by name --- diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc index b21ba01ba..51f1f0ca1 100644 --- a/passes/cmds/stat.cc +++ b/passes/cmds/stat.cc @@ -33,7 +33,7 @@ struct statdata_t STAT_INT_MEMBERS #undef X - std::map num_cells_by_type; + std::map num_cells_by_type; statdata_t operator+(const statdata_t &other) const { @@ -147,7 +147,7 @@ struct statdata_t statdata_t hierarchy_worker(std::map &mod_stat, RTLIL::IdString mod, int level) { statdata_t mod_data = mod_stat.at(mod); - std::map num_cells_by_type; + std::map num_cells_by_type; num_cells_by_type.swap(mod_data.num_cells_by_type); for (auto &it : num_cells_by_type)