mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	[Support] Add a version of sys::fs::equivalent() that treats errors as false.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -309,6 +309,13 @@ bool equivalent(file_status A, file_status B);
 | 
				
			|||||||
///          platform specific error_code.
 | 
					///          platform specific error_code.
 | 
				
			||||||
error_code equivalent(const Twine &A, const Twine &B, bool &result);
 | 
					error_code equivalent(const Twine &A, const Twine &B, bool &result);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/// @brief Simpler version of equivalent for clients that don't need to
 | 
				
			||||||
 | 
					///        differentiate between an error and false.
 | 
				
			||||||
 | 
					inline bool equivalent(const Twine &A, const Twine &B) {
 | 
				
			||||||
 | 
					  bool result;
 | 
				
			||||||
 | 
					  return !equivalent(A, B, result) && result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// @brief Get file size.
 | 
					/// @brief Get file size.
 | 
				
			||||||
///
 | 
					///
 | 
				
			||||||
/// @param path Input path.
 | 
					/// @param path Input path.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user