mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Clean up pseudo-private member usage in backends/ilang/ilang_backend.cc.
				
					
				
			This commit is contained in:
		
							parent
							
								
									05f74d4f31
								
							
						
					
					
						commit
						68fef4ca7f
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -358,10 +358,10 @@ void ILANG_BACKEND::dump_design(std::ostream &f, RTLIL::Design *design, bool onl | ||||||
| 
 | 
 | ||||||
| 	if (!flag_m) { | 	if (!flag_m) { | ||||||
| 		int count_selected_mods = 0; | 		int count_selected_mods = 0; | ||||||
| 		for (auto it = design->modules_.begin(); it != design->modules_.end(); ++it) { | 		for (auto module : design->modules()) { | ||||||
| 			if (design->selected_whole_module(it->first)) | 			if (design->selected_whole_module(module->name)) | ||||||
| 				flag_m = true; | 				flag_m = true; | ||||||
| 			if (design->selected(it->second)) | 			if (design->selected(module)) | ||||||
| 				count_selected_mods++; | 				count_selected_mods++; | ||||||
| 		} | 		} | ||||||
| 		if (count_selected_mods > 1) | 		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); | 		f << stringf("autoidx %d\n", autoidx); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	for (auto it = design->modules_.begin(); it != design->modules_.end(); ++it) { | 	for (auto module : design->modules()) { | ||||||
| 		if (!only_selected || design->selected(it->second)) { | 		if (!only_selected || design->selected(module)) { | ||||||
| 			if (only_selected) | 			if (only_selected) | ||||||
| 				f << stringf("\n"); | 				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); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue