diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-05-21 21:20:07 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-05-21 21:20:07 +0000 |
| commit | 89c2e3babbc3dfe6b26e9d96a4f06eb14b3d9fdd (patch) | |
| tree | 53041bfd7600108d9d5140722a02c9c1d88d55ee /llvm/lib/System | |
| parent | dac7fe424fdb11d5f090e00784646e0b02e5acee (diff) | |
| download | bcm5719-llvm-89c2e3babbc3dfe6b26e9d96a4f06eb14b3d9fdd.tar.gz bcm5719-llvm-89c2e3babbc3dfe6b26e9d96a4f06eb14b3d9fdd.zip | |
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.
llvm-svn: 51393
Diffstat (limited to 'llvm/lib/System')
| -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; |

