From f1aa69d103b34c55c8111958300312412dd048d2 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Fri, 12 Mar 2010 10:17:07 +0000 Subject: [PATCH] Switch parameter order for consistency (no functionality change) llvm-svn: 98341 --- clang/lib/Basic/IdentifierTable.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index fd9b2756f81b..f779c8f74bc8 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -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" }