[cfe-commits] r71674 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed May 13 09:19:09 PDT 2009
Author: fjahanian
Date: Wed May 13 11:19:02 2009
New Revision: 71674
URL: http://llvm.org/viewvc/llvm-project?rev=71674&view=rev
Log:
Removed 4-letter :) word in comment.
Used simple array for Selector build.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=71674&r1=71673&r2=71674&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Wed May 13 11:19:02 2009
@@ -4160,14 +4160,14 @@
NonLegacyDispatchMethods.insert(GetUnarySelector("isEqualToString"));
NonLegacyDispatchMethods.insert(GetUnarySelector("isEqual"));
NonLegacyDispatchMethods.insert(GetUnarySelector("addObject"));
- // "countByEnumeratingWithState:objects:count" auch!
- llvm::SmallVector<IdentifierInfo *, 4> KeyIdents;
- KeyIdents.push_back(
- &CGM.getContext().Idents.get("countByEnumeratingWithState"));
- KeyIdents.push_back(&CGM.getContext().Idents.get("objects"));
- KeyIdents.push_back(&CGM.getContext().Idents.get("count"));
- NonLegacyDispatchMethods.insert(CGM.getContext().Selectors.getSelector(
- 3, &KeyIdents[0]));
+ // "countByEnumeratingWithState:objects:count"
+ IdentifierInfo *KeyIdents[] = {
+ &CGM.getContext().Idents.get("countByEnumeratingWithState"),
+ &CGM.getContext().Idents.get("objects"),
+ &CGM.getContext().Idents.get("count")
+ };
+ NonLegacyDispatchMethods.insert(
+ CGM.getContext().Selectors.getSelector(3, KeyIdents));
}
return (NonLegacyDispatchMethods.count(Sel) == 0);
}
More information about the cfe-commits
mailing list