aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-05-13 16:19:02 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-05-13 16:19:02 +0000
commitbe53be4551bacfe05ec93ca56d29990da0cc1db9 (patch)
tree8cfb930fb8bc69573f6e28d2dc82197873e9b8a5 /lib/CodeGen
parent42ae3e81a811362c0bf78deb71b72455aadff772 (diff)
Removed 4-letter :) word in comment.
Used simple array for Selector build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 1095f4aac3..687b6343db 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -4160,14 +4160,14 @@ bool CGObjCNonFragileABIMac::LegacyDispatchedSelector(Selector Sel) {
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);
}