aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-01 18:24:22 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-01 18:24:22 +0000
commitef66abeaeef425927821ddc331d5c14138efe258 (patch)
treed82aee952312ff575fd7d25e159ffd5cd43d14d1 /utils
parent77c5b0d7dc4b516982b2a9c17b241e773b58586d (diff)
downloadexternal_llvm-ef66abeaeef425927821ddc331d5c14138efe258.zip
external_llvm-ef66abeaeef425927821ddc331d5c14138efe258.tar.gz
external_llvm-ef66abeaeef425927821ddc331d5c14138efe258.tar.bz2
Constify method to make VC++ happy. Patch by Brian Diekelman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 3d35351..5364f59 100644
--- a/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -135,8 +135,8 @@ static const std::string &getOptName(const Record *R) {
namespace {
struct VISIBILITY_HIDDEN CompareOptName {
- bool operator()(const Record* A, const Record* B) {
- return getOptName(A) < getOptName(B);
+ bool operator()(const Record* A, const Record* B) const {
+ return getOptName(A) < getOptName(B);
}
};
}