diff options
author | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-04-01 03:08:39 +0000 |
---|---|---|
committer | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-04-01 03:08:39 +0000 |
commit | 68fef4ca7ffae4078a1cdb324a1a2ebb1cf01cbd (patch) | |
tree | f2bad9adc34080927965695e870bff830e36e395 /backends/ilang | |
parent | 05f74d4f315eab0fa0c7e83627482f5160113ba5 (diff) | |
download | yosys-68fef4ca7ffae4078a1cdb324a1a2ebb1cf01cbd.tar.gz yosys-68fef4ca7ffae4078a1cdb324a1a2ebb1cf01cbd.tar.bz2 yosys-68fef4ca7ffae4078a1cdb324a1a2ebb1cf01cbd.zip |
Clean up pseudo-private member usage in `backends/ilang/ilang_backend.cc`.
Diffstat (limited to 'backends/ilang')
-rw-r--r-- | backends/ilang/ilang_backend.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/ilang/ilang_backend.cc b/backends/ilang/ilang_backend.cc index e06786220..5445fad90 100644 --- a/backends/ilang/ilang_backend.cc +++ b/backends/ilang/ilang_backend.cc @@ -358,10 +358,10 @@ void ILANG_BACKEND::dump_design(std::ostream &f, RTLIL::Design *design, bool onl if (!flag_m) { int count_selected_mods = 0; - for (auto it = design->modules_.begin(); it != design->modules_.end(); ++it) { - if (design->selected_whole_module(it->first)) + for (auto module : design->modules()) { + if (design->selected_whole_module(module->name)) flag_m = true; - if (design->selected(it->second)) + if (design->selected(module)) count_selected_mods++; } if (count_selected_mods > 1) @@ -374,11 +374,11 @@ void ILANG_BACKEND::dump_design(std::ostream &f, RTLIL::Design *design, bool onl f << stringf("autoidx %d\n", autoidx); } - for (auto it = design->modules_.begin(); it != design->modules_.end(); ++it) { - if (!only_selected || design->selected(it->second)) { + for (auto module : design->modules()) { + if (!only_selected || design->selected(module)) { if (only_selected) f << stringf("\n"); - dump_module(f, "", it->second, design, only_selected, flag_m, flag_n); + dump_module(f, "", module, design, only_selected, flag_m, flag_n); } } |