mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Remove submod -noclean (unused now)
This commit is contained in:
		
							parent
							
								
									925741bf09
								
							
						
					
					
						commit
						4a5e33520b
					
				
					 1 changed files with 3 additions and 14 deletions
				
			
		|  | @ -351,9 +351,6 @@ struct SubmodPass : public Pass { | |||
| 		log("        private names so that a subsequent 'flatten; clean' call will restore\n"); | ||||
| 		log("        the original module with original public names.\n"); | ||||
| 		log("\n"); | ||||
| 		log("    -noclean\n"); | ||||
| 		log("        by default opt_clean is run after. call with -noclean to skip this pass.\n"); | ||||
| 		log("\n"); | ||||
| 	} | ||||
| 	void execute(std::vector<std::string> args, RTLIL::Design *design) override | ||||
| 	{ | ||||
|  | @ -363,7 +360,6 @@ struct SubmodPass : public Pass { | |||
| 		std::string opt_name; | ||||
| 		bool copy_mode = false; | ||||
| 		bool hidden_mode = false; | ||||
| 		bool noclean_mode = false; | ||||
| 
 | ||||
| 		size_t argidx; | ||||
| 		for (argidx = 1; argidx < args.size(); argidx++) { | ||||
|  | @ -379,17 +375,12 @@ struct SubmodPass : public Pass { | |||
| 				hidden_mode = true; | ||||
| 				continue; | ||||
| 			} | ||||
| 			if (args[argidx] == "-noclean") { | ||||
| 				noclean_mode = true; | ||||
| 				continue; | ||||
| 			} | ||||
| 			break; | ||||
| 		} | ||||
| 		extra_args(args, argidx, design); | ||||
| 
 | ||||
| 		if (opt_name.empty()) | ||||
| 		{ | ||||
| 			if (!noclean_mode) | ||||
| 			Pass::call(design, "opt_clean"); | ||||
| 			log_header(design, "Continuing SUBMOD pass.\n"); | ||||
| 
 | ||||
|  | @ -410,7 +401,6 @@ struct SubmodPass : public Pass { | |||
| 					} | ||||
| 			} | ||||
| 
 | ||||
| 			if (!noclean_mode) | ||||
| 			Pass::call(design, "opt_clean"); | ||||
| 		} | ||||
| 		else | ||||
|  | @ -424,7 +414,6 @@ struct SubmodPass : public Pass { | |||
| 			if (module == nullptr) | ||||
| 				log("Nothing selected -> do nothing.\n"); | ||||
| 			else { | ||||
| 				if (!noclean_mode) | ||||
| 				Pass::call_on_module(design, module, "opt_clean"); | ||||
| 				log_header(design, "Continuing SUBMOD pass.\n"); | ||||
| 				SubmodWorker worker(design, module, copy_mode, hidden_mode, opt_name); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue