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
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 @@
 
 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);
   }
 };
 }