Reverting r51218 because of breakage on PPC32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2008-05-20 23:54:27 +00:00
parent 5edf210bdf
commit 55384a853c

View File

@ -19,7 +19,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <iosfwd> #include <iosfwd>
#include <cstring>
namespace llvm { namespace llvm {
namespace sys { namespace sys {
@ -207,14 +206,14 @@ namespace sys {
/// @returns true if \p this and \p that refer to the same thing. /// @returns true if \p this and \p that refer to the same thing.
/// @brief Equality Operator /// @brief Equality Operator
bool operator==(const Path &that) const { 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. /// Compares \p this Path with \p that Path for inequality.
/// @returns true if \p this and \p that refer to different things. /// @returns true if \p this and \p that refer to different things.
/// @brief Inequality Operator /// @brief Inequality Operator
bool operator!=(const Path &that) const { 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 /// 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. /// @returns true if \p this path is lexicographically less than \p that.
/// @brief Less Than Operator /// @brief Less Than Operator
bool operator<(const Path& that) const { bool operator<(const Path& that) const {
return strcmp(path.c_str(), that.path.c_str()) < 0; return path < that.path;
} }
/// @} /// @}