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 /// AddObjCKeyword - Register an Objective-C @keyword like "class" "selector" or
/// "property". /// "property".
static void AddObjCKeyword(tok::ObjCKeywordKind ObjCID, static void AddObjCKeyword(llvm::StringRef Name,
llvm::StringRef Name, tok::ObjCKeywordKind ObjCID,
IdentifierTable &Table) { IdentifierTable &Table) {
Table.get(Name).setObjCKeywordID(ObjCID); Table.get(Name).setObjCKeywordID(ObjCID);
} }
@ -136,10 +136,10 @@ void IdentifierTable::AddKeywords(const LangOptions &LangOpts) {
AddCXXOperatorKeyword(llvm::StringRef(#NAME), tok::ALIAS, *this); AddCXXOperatorKeyword(llvm::StringRef(#NAME), tok::ALIAS, *this);
#define OBJC1_AT_KEYWORD(NAME) \ #define OBJC1_AT_KEYWORD(NAME) \
if (LangOpts.ObjC1) \ if (LangOpts.ObjC1) \
AddObjCKeyword(tok::objc_##NAME, llvm::StringRef(#NAME), *this); AddObjCKeyword(llvm::StringRef(#NAME), tok::objc_##NAME, *this);
#define OBJC2_AT_KEYWORD(NAME) \ #define OBJC2_AT_KEYWORD(NAME) \
if (LangOpts.ObjC2) \ if (LangOpts.ObjC2) \
AddObjCKeyword(tok::objc_##NAME, llvm::StringRef(#NAME), *this); AddObjCKeyword(llvm::StringRef(#NAME), tok::objc_##NAME, *this);
#include "clang/Basic/TokenKinds.def" #include "clang/Basic/TokenKinds.def"
} }