diff options
author | Lenny Maiorani <lenny@colorado.edu> | 2011-04-28 20:20:12 +0000 |
---|---|---|
committer | Lenny Maiorani <lenny@colorado.edu> | 2011-04-28 20:20:12 +0000 |
commit | 6cf081cbe5963d6e1b12b0ac1268538a38acd0f1 (patch) | |
tree | 84ca75909079f0182aa0460b62dd81725658bdd6 /include/llvm/ADT | |
parent | d227eedf8270f816270259742c17685f59044a22 (diff) | |
download | llvm-6cf081cbe5963d6e1b12b0ac1268538a38acd0f1.tar.gz llvm-6cf081cbe5963d6e1b12b0ac1268538a38acd0f1.tar.bz2 llvm-6cf081cbe5963d6e1b12b0ac1268538a38acd0f1.tar.xz |
Remove bounded StringRef::compare() since nothing but Clang SA was using it and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/StringRef.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index adff42fe2d..1766d2b9f2 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -125,12 +125,6 @@ namespace llvm { return Length < RHS.Length ? -1 : 1; } - /// compare - Compare two strings; the result is -1, 0, or 1 if this string - /// is lexicographically less than, equal to, or greater than the \arg RHS. - /// This is different than compare with no size specified as it only - /// compares at most the first n bytes. - int compare(StringRef RHS, size_t n) const; - /// compare_lower - Compare two strings, ignoring case. int compare_lower(StringRef RHS) const; |