llvm.org GIT mirror llvm / 55384a8
Reverting r51218 because of breakage on PPC32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51358 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 12 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1818 #include
1919 #include
2020 #include
21 #include
2221
2322 namespace llvm {
2423 namespace sys {
206205 /// @returns true if \p this and \p that refer to the same thing.
207206 /// @brief Equality Operator
208207 bool operator==(const Path &that) const {
209 return strcmp(path.c_str(), that.path.c_str()) == 0;
208 return path == that.path;
210209 }
211210
212211 /// Compares \p this Path with \p that Path for inequality.
213212 /// @returns true if \p this and \p that refer to different things.
214213 /// @brief Inequality Operator
215214 bool operator!=(const Path &that) const {
216 return strcmp(path.c_str(), that.path.c_str()) != 0;
215 return path != that.path;
217216 }
218217
219218 /// Determines if \p this Path is less than \p that Path. This is required
223222 /// @returns true if \p this path is lexicographically less than \p that.
224223 /// @brief Less Than Operator
225224 bool operator<(const Path& that) const {
226 return strcmp(path.c_str(), that.path.c_str()) < 0;
225 return path < that.path;
227226 }
228227
229228 /// @}