From 55384a853c36073b53331ae0e24c3dca7881108f Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 20 May 2008 23:54:27 +0000 Subject: [PATCH] Reverting r51218 because of breakage on PPC32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51358 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Path.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 22663491058..ba251a9dbbc 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -19,7 +19,6 @@ #include #include #include -#include namespace llvm { namespace sys { @@ -207,14 +206,14 @@ namespace sys { /// @returns true if \p this and \p that refer to the same thing. /// @brief Equality Operator bool operator==(const Path &that) const { - return strcmp(path.c_str(), that.path.c_str()) == 0; + return path == that.path; } /// Compares \p this Path with \p that Path for inequality. /// @returns true if \p this and \p that refer to different things. /// @brief Inequality Operator bool operator!=(const Path &that) const { - return strcmp(path.c_str(), that.path.c_str()) != 0; + return path != that.path; } /// Determines if \p this Path is less than \p that Path. This is required @@ -224,7 +223,7 @@ namespace sys { /// @returns true if \p this path is lexicographically less than \p that. /// @brief Less Than Operator bool operator<(const Path& that) const { - return strcmp(path.c_str(), that.path.c_str()) < 0; + return path < that.path; } /// @} -- 2.34.1