From: Fariborz Jahanian Date: Wed, 13 May 2009 16:19:02 +0000 (+0000) Subject: Removed 4-letter :) word in comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be53be4551bacfe05ec93ca56d29990da0cc1db9;p=clang 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 --- 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 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); }