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

