summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Option/OptTable.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-09-10 22:42:31 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-09-10 22:42:31 +0000
commit1891f693238be703c46265520aa781c64ebe9e75 (patch)
treef625700155d535824407fe53f6685291de8c3989 /llvm/lib/Option/OptTable.cpp
parentf978886ea4d7ec663c123ded0843d30b79ffa7f2 (diff)
downloadbcm5719-llvm-1891f693238be703c46265520aa781c64ebe9e75.tar.gz
bcm5719-llvm-1891f693238be703c46265520aa781c64ebe9e75.zip
Remove unused functions.
llvm-svn: 190442
Diffstat (limited to 'llvm/lib/Option/OptTable.cpp')
-rw-r--r--llvm/lib/Option/OptTable.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/Option/OptTable.cpp b/llvm/lib/Option/OptTable.cpp
index b126841f72c..5b4b5d35650 100644
--- a/llvm/lib/Option/OptTable.cpp
+++ b/llvm/lib/Option/OptTable.cpp
@@ -46,40 +46,10 @@ static int StrCmpOptionNameIgnoreCase(const char *A, const char *B) {
return (a < b) ? -1 : 1;
}
-static int StrCmpOptionName(const char *A, const char *B) {
- if (int N = StrCmpOptionNameIgnoreCase(A, B))
- return N;
- return strcmp(A, B);
-}
-
-static inline bool operator<(const OptTable::Info &A, const OptTable::Info &B) {
- if (&A == &B)
- return false;
-
- if (int N = StrCmpOptionName(A.Name, B.Name))
- return N < 0;
-
- for (const char * const *APre = A.Prefixes,
- * const *BPre = B.Prefixes;
- *APre != 0 && *BPre != 0; ++APre, ++BPre) {
- if (int N = StrCmpOptionName(*APre, *BPre))
- return N < 0;
- }
-
- // Names are the same, check that classes are in order; exactly one
- // should be joined, and it should succeed the other.
- assert(((A.Kind == Option::JoinedClass) ^ (B.Kind == Option::JoinedClass)) &&
- "Unexpected classes for options with same name.");
- return B.Kind == Option::JoinedClass;
-}
-
// Support lower_bound between info and an option name.
static inline bool operator<(const OptTable::Info &I, const char *Name) {
return StrCmpOptionNameIgnoreCase(I.Name, Name) < 0;
}
-static inline bool operator<(const char *Name, const OptTable::Info &I) {
- return StrCmpOptionNameIgnoreCase(Name, I.Name) < 0;
-}
}
}
OpenPOWER on IntegriCloud