diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-06-19 00:43:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-06-19 00:43:19 +0000 |
commit | 92fc7419986ab025a53f63521161a3e1b1812654 (patch) | |
tree | 3acb506890bf250a01fdafdf8930356517ca3114 /clang-tools-extra/modularize/PreprocessorTracker.cpp | |
parent | 89e561a63ec04b59ee70bd6e1a1c1746eacc94dd (diff) | |
download | bcm5719-llvm-92fc7419986ab025a53f63521161a3e1b1812654.tar.gz bcm5719-llvm-92fc7419986ab025a53f63521161a3e1b1812654.zip |
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
Diffstat (limited to 'clang-tools-extra/modularize/PreprocessorTracker.cpp')
-rw-r--r-- | clang-tools-extra/modularize/PreprocessorTracker.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/clang-tools-extra/modularize/PreprocessorTracker.cpp b/clang-tools-extra/modularize/PreprocessorTracker.cpp index e71a2b0a381..0b99f212c79 100644 --- a/clang-tools-extra/modularize/PreprocessorTracker.cpp +++ b/clang-tools-extra/modularize/PreprocessorTracker.cpp @@ -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 : ""); |