diff options
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index 086c9f0238..03cdbf7764 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -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; |