mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Fixed generation of newlines in "dump" output
This commit is contained in:
		
							parent
							
								
									95e937438f
								
							
						
					
					
						commit
						af79b4bd98
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -323,11 +323,12 @@ void ILANG_BACKEND::dump_module(FILE *f, std::string indent, const RTLIL::Module | ||||||
| void ILANG_BACKEND::dump_design(FILE *f, const RTLIL::Design *design, bool only_selected) | void ILANG_BACKEND::dump_design(FILE *f, const RTLIL::Design *design, bool only_selected) | ||||||
| { | { | ||||||
| 	for (auto it = design->modules.begin(); it != design->modules.end(); it++) { | 	for (auto it = design->modules.begin(); it != design->modules.end(); it++) { | ||||||
| 		if (it != design->modules.begin() || only_selected) | 		if (!only_selected || design->selected(it->second)) { | ||||||
|  | 			if (only_selected) | ||||||
| 				fprintf(f, "\n"); | 				fprintf(f, "\n"); | ||||||
| 		if (!only_selected || design->selected(it->second)) |  | ||||||
| 			dump_module(f, "", it->second, design, only_selected); | 			dump_module(f, "", it->second, design, only_selected); | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| struct IlangBackend : public Backend { | struct IlangBackend : public Backend { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue