summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringRef.cpp
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
commit292c9200fcc7dec14977f8cca62f7de39489cbc7 (patch)
tree0ec6895498e1c453e3df8bf682829f2f0a360ca7 /llvm/lib/Support/StringRef.cpp
parente531cbaa8661bb878fc5463c8fd69b87544414e1 (diff)
downloadbcm5719-llvm-292c9200fcc7dec14977f8cca62f7de39489cbc7.tar.gz
bcm5719-llvm-292c9200fcc7dec14977f8cca62f7de39489cbc7.zip
Added const qualifier to StringRef::edit_distance member function
Patch by Ismail Pazarbasi. llvm-svn: 189162
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
-rw-r--r--llvm/lib/Support/StringRef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/StringRef.cpp b/llvm/lib/Support/StringRef.cpp
index d7a0bfa4100..ee49ca80ffd 100644
--- a/llvm/lib/Support/StringRef.cpp
+++ b/llvm/lib/Support/StringRef.cpp
@@ -85,7 +85,7 @@ int StringRef::compare_numeric(StringRef RHS) const {
// Compute the edit distance between the two given strings.
unsigned StringRef::edit_distance(llvm::StringRef Other,
bool AllowReplacements,
- unsigned MaxEditDistance) {
+ unsigned MaxEditDistance) const {
return llvm::ComputeEditDistance(
llvm::ArrayRef<char>(data(), size()),
llvm::ArrayRef<char>(Other.data(), Other.size()),
OpenPOWER on IntegriCloud