aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-08-24 01:50:41 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-08-24 01:50:41 +0000
commit4a48389b27cafe30a38592b50e0f4b9e97b9d65e (patch)
tree2a581856f89318e8fb60ed4ecf4ec0f9da73da43 /include/llvm/ADT
parentcbbd1eeecb2bf49915c4bd0e20b1e9bad8696ada (diff)
downloadexternal_llvm-4a48389b27cafe30a38592b50e0f4b9e97b9d65e.zip
external_llvm-4a48389b27cafe30a38592b50e0f4b9e97b9d65e.tar.gz
external_llvm-4a48389b27cafe30a38592b50e0f4b9e97b9d65e.tar.bz2
Added const qualifier to StringRef::edit_distance member function
Patch by Ismail Pazarbasi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/StringRef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h
index 3e1e24c..fd5b28e 100644
--- a/include/llvm/ADT/StringRef.h
+++ b/include/llvm/ADT/StringRef.h
@@ -175,7 +175,7 @@ namespace llvm {
/// transform one of the given strings into the other. If zero,
/// the strings are identical.
unsigned edit_distance(StringRef Other, bool AllowReplacements = true,
- unsigned MaxEditDistance = 0);
+ unsigned MaxEditDistance = 0) const;
/// str - Get the contents as an std::string.
std::string str() const {