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).

llvm-svn: 211245
This commit is contained in:
David Blaikie 2014-06-19 00:43:19 +00:00
parent 89e561a63e
commit 92fc741998
1 changed files with 0 additions and 13 deletions

View File

@ -535,19 +535,6 @@ ConditionValueKindStrings[] = {
"(not evaluated)", "false", "true" "(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) { bool operator<(const StringHandle &H1, const StringHandle &H2) {
const char *S1 = (H1 ? *H1 : ""); const char *S1 = (H1 ? *H1 : "");
const char *S2 = (H2 ? *H2 : ""); const char *S2 = (H2 ? *H2 : "");