[llvm-commits] [llvm] r68222 - /llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp

Ted Kremenek kremenek at apple.com
Wed Apr 1 11:24:22 PDT 2009


Author: kremenek
Date: Wed Apr  1 13:24:22 2009
New Revision: 68222

URL: http://llvm.org/viewvc/llvm-project?rev=68222&view=rev
Log:
Constify method to make VC++ happy.  Patch by Brian Diekelman!

Modified:
    llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp

Modified: llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp?rev=68222&r1=68221&r2=68222&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Wed Apr  1 13:24:22 2009
@@ -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);
   }
 };
 }





More information about the llvm-commits mailing list