mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed cstr_buf for std::string with small string optimization
This commit is contained in:
		
							parent
							
								
									3a6abc9bf6
								
							
						
					
					
						commit
						4c733301e6
					
				
					 6 changed files with 16 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -61,7 +61,7 @@ struct BlifDumper
 | 
			
		|||
	{
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	std::vector<std::string> cstr_buf;
 | 
			
		||||
	vector<shared_str> cstr_buf;
 | 
			
		||||
 | 
			
		||||
	const char *cstr(RTLIL::IdString id)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -155,7 +155,7 @@ struct BtorDumper
 | 
			
		|||
		 
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	std::vector<std::string> cstr_buf;
 | 
			
		||||
	vector<shared_str> cstr_buf;
 | 
			
		||||
 | 
			
		||||
	const char *cstr(const RTLIL::IdString id)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue