mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Follow-up to the reverting of r51218. This puts the checks out-of-line. Because
they aren't in the header file, systems with a <string> header file that isn't 64-bit clean shouldn't warn if #including Path.h and specifying -Wshorten-64-to-32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -24,6 +24,18 @@ using namespace sys;
|
||||
//=== independent code.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
bool Path::operator==(const Path &that) const {
|
||||
return path == that.path;
|
||||
}
|
||||
|
||||
bool Path::operator!=(const Path &that) const {
|
||||
return path != that.path;
|
||||
}
|
||||
|
||||
bool Path::operator<(const Path& that) const {
|
||||
return path < that.path;
|
||||
}
|
||||
|
||||
std::ostream& llvm::operator<<(std::ostream &strm, const sys::Path &aPath) {
|
||||
strm << aPath.toString();
|
||||
return strm;
|
||||
|
Reference in New Issue
Block a user