mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Support filename rewrite in backends
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
		
							parent
							
								
									468c41d997
								
							
						
					
					
						commit
						4a18e19fb8
					
				
					 4 changed files with 4 additions and 0 deletions
				
			
		|  | @ -525,6 +525,7 @@ struct JsonPass : public Pass { | |||
| 		std::stringstream buf; | ||||
| 
 | ||||
| 		if (!filename.empty()) { | ||||
| 			rewrite_filename(filename); | ||||
| 			std::ofstream *ff = new std::ofstream; | ||||
| 			ff->open(filename.c_str(), std::ofstream::trunc); | ||||
| 			if (ff->fail()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue