Switch parameter order for consistency (no functionality change)

llvm-svn: 98341
This commit is contained in:
Kovarththanan Rajaratnam 2010-03-12 10:17:07 +00:00
parent e2acea7c53
commit f1aa69d103
1 changed files with 4 additions and 4 deletions

View File

@ -115,8 +115,8 @@ static void AddCXXOperatorKeyword(llvm::StringRef Keyword,
/// 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 @@ void IdentifierTable::AddKeywords(const LangOptions &LangOpts) {
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"
}