[cfe-commits] r140256 - /cfe/trunk/lib/Lex/PreprocessingRecord.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed Sep 21 09:58:21 PDT 2011


Author: d0k
Date: Wed Sep 21 11:58:20 2011
New Revision: 140256

URL: http://llvm.org/viewvc/llvm-project?rev=140256&view=rev
Log:
More MSVC9 unbreaking.

Modified:
    cfe/trunk/lib/Lex/PreprocessingRecord.cpp

Modified: cfe/trunk/lib/Lex/PreprocessingRecord.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PreprocessingRecord.cpp?rev=140256&r1=140255&r2=140256&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PreprocessingRecord.cpp (original)
+++ cfe/trunk/lib/Lex/PreprocessingRecord.cpp Wed Sep 21 11:58:20 2011
@@ -100,12 +100,18 @@
 
   explicit PPEntityComp(const SourceManager &SM) : SM(SM) { }
 
-  bool operator()(PreprocessedEntity *L, SourceLocation RHS) {
+  bool operator()(PreprocessedEntity *L, PreprocessedEntity *R) const {
+    SourceLocation LHS = getLoc(L);
+    SourceLocation RHS = getLoc(R);
+    return SM.isBeforeInTranslationUnit(LHS, RHS);
+  }
+
+  bool operator()(PreprocessedEntity *L, SourceLocation RHS) const {
     SourceLocation LHS = getLoc(L);
     return SM.isBeforeInTranslationUnit(LHS, RHS);
   }
 
-  bool operator()(SourceLocation LHS, PreprocessedEntity *R) {
+  bool operator()(SourceLocation LHS, PreprocessedEntity *R) const {
     SourceLocation RHS = getLoc(R);
     return SM.isBeforeInTranslationUnit(LHS, RHS);
   }





More information about the cfe-commits mailing list