[clang-tools-extra] r211245 - Unbreak the build after r211244.
David Blaikie
dblaikie at gmail.com
Wed Jun 18 17:43:20 PDT 2014
Author: dblaikie
Date: Wed Jun 18 19:43:19 2014
New Revision: 211245
URL: http://llvm.org/viewvc/llvm-project?rev=211245&view=rev
Log:
Unbreak the build after r211244.
These operator overloads were unneeded (once the const correctness in
PooledStringPtr was corrected) and inefficient (since the strings are
pooled the pointers can just be compared for equality instead of doing
strcmp).
Modified:
clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp
Modified: clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp?rev=211245&r1=211244&r2=211245&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp (original)
+++ clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp Wed Jun 18 19:43:19 2014
@@ -535,19 +535,6 @@ ConditionValueKindStrings[] = {
"(not evaluated)", "false", "true"
};
-// We need some operator overloads for string handles.
-bool operator==(const StringHandle &H1, const StringHandle &H2) {
- const char *S1 = (H1 ? *H1 : "");
- const char *S2 = (H2 ? *H2 : "");
- int Diff = strcmp(S1, S2);
- return Diff == 0;
-}
-bool operator!=(const StringHandle &H1, const StringHandle &H2) {
- const char *S1 = (H1 ? *H1 : "");
- const char *S2 = (H2 ? *H2 : "");
- int Diff = strcmp(S1, S2);
- return Diff != 0;
-}
bool operator<(const StringHandle &H1, const StringHandle &H2) {
const char *S1 = (H1 ? *H1 : "");
const char *S2 = (H2 ? *H2 : "");
More information about the cfe-commits
mailing list