diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-05-20 23:54:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-05-20 23:54:27 +0000 |
commit | 7a6951a7907201a771aa8c623d699930fe07935b (patch) | |
tree | c90d766158250577417578d60c079c0bdd444966 | |
parent | afb4e8c89c98ebf333a425cbd410a7c7c90748c3 (diff) | |
download | external_llvm-7a6951a7907201a771aa8c623d699930fe07935b.zip external_llvm-7a6951a7907201a771aa8c623d699930fe07935b.tar.gz external_llvm-7a6951a7907201a771aa8c623d699930fe07935b.tar.bz2 |
Reverting r51218 because of breakage on PPC32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51358 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/System/Path.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 2266349..ba251a9 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -19,7 +19,6 @@ #include <string> #include <vector> #include <iosfwd> -#include <cstring> 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; } /// @} |