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:
parent
89e561a63e
commit
92fc741998
|
@ -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 : "");
|
||||
|
|
Loading…
Reference in New Issue