[cfe-commits] r98341 - /cfe/trunk/lib/Basic/IdentifierTable.cpp
Kovarththanan Rajaratnam
kovarththanan.rajaratnam at gmail.com
Fri Mar 12 02:17:07 PST 2010
Author: krj
Date: Fri Mar 12 04:17:07 2010
New Revision: 98341
URL: http://llvm.org/viewvc/llvm-project?rev=98341&view=rev
Log:
Switch parameter order for consistency (no functionality change)
Modified:
cfe/trunk/lib/Basic/IdentifierTable.cpp
Modified: cfe/trunk/lib/Basic/IdentifierTable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/IdentifierTable.cpp?rev=98341&r1=98340&r2=98341&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/IdentifierTable.cpp (original)
+++ cfe/trunk/lib/Basic/IdentifierTable.cpp Fri Mar 12 04:17:07 2010
@@ -115,8 +115,8 @@
/// AddObjCKeyword - Register an Objective-C @keyword like "class" "selector" or
/// "property".
-static void AddObjCKeyword(tok::ObjCKeywordKind ObjCID,
- llvm::StringRef Name,
+static void AddObjCKeyword(llvm::StringRef Name,
+ tok::ObjCKeywordKind ObjCID,
IdentifierTable &Table) {
Table.get(Name).setObjCKeywordID(ObjCID);
}
@@ -136,10 +136,10 @@
AddCXXOperatorKeyword(llvm::StringRef(#NAME), tok::ALIAS, *this);
#define OBJC1_AT_KEYWORD(NAME) \
if (LangOpts.ObjC1) \
- AddObjCKeyword(tok::objc_##NAME, llvm::StringRef(#NAME), *this);
+ AddObjCKeyword(llvm::StringRef(#NAME), tok::objc_##NAME, *this);
#define OBJC2_AT_KEYWORD(NAME) \
if (LangOpts.ObjC2) \
- AddObjCKeyword(tok::objc_##NAME, llvm::StringRef(#NAME), *this);
+ AddObjCKeyword(llvm::StringRef(#NAME), tok::objc_##NAME, *this);
#include "clang/Basic/TokenKinds.def"
}
More information about the cfe-commits
mailing list