mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	rtlil: change IdString comparison operators to take references instead of copies
This commit is contained in:
		
							parent
							
								
									8b3f8cd220
								
							
						
					
					
						commit
						9e26147ccd
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -192,12 +192,12 @@ namespace RTLIL | |||
| 			return std::string(global_id_storage_.at(index_)); | ||||
| 		} | ||||
| 
 | ||||
| 		bool operator<(IdString rhs) const { | ||||
| 		bool operator<(const IdString &rhs) const { | ||||
| 			return index_ < rhs.index_; | ||||
| 		} | ||||
| 
 | ||||
| 		bool operator==(IdString rhs) const { return index_ == rhs.index_; } | ||||
| 		bool operator!=(IdString rhs) const { return index_ != rhs.index_; } | ||||
| 		bool operator==(const IdString &rhs) const { return index_ == rhs.index_; } | ||||
| 		bool operator!=(const IdString &rhs) const { return index_ != rhs.index_; } | ||||
| 
 | ||||
| 		// The methods below are just convenience functions for better compatibility with std::string.
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue