summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/NSAPI.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-08-06 20:56:21 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-08-06 20:56:21 +0000
commit501e71c86bc9a442bc0f7cf6635bea14d9019daf (patch)
tree93fb0724be188726ad03ea278e30b791b7bf6c9c /clang/lib/AST/NSAPI.cpp
parentcd47959eb614ceb13c4a723068c72d0930f5c4e2 (diff)
downloadbcm5719-llvm-501e71c86bc9a442bc0f7cf6635bea14d9019daf.tar.gz
bcm5719-llvm-501e71c86bc9a442bc0f7cf6635bea14d9019daf.zip
Objective-C ARC. Adding declarations for Objective-C's
new APIs for literals. nfc. wip. rdar://17554063 llvm-svn: 214993
Diffstat (limited to 'clang/lib/AST/NSAPI.cpp')
-rw-r--r--clang/lib/AST/NSAPI.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/lib/AST/NSAPI.cpp b/clang/lib/AST/NSAPI.cpp
index 986b3b53983..c6afc8e3819 100644
--- a/clang/lib/AST/NSAPI.cpp
+++ b/clang/lib/AST/NSAPI.cpp
@@ -119,6 +119,14 @@ Selector NSAPI::getNSArraySelector(NSArrayMethodKind MK) const {
Sel = Ctx.Selectors.getSelector(2, KeyIdents);
break;
}
+ case NSArr_initWithObjectsCount: {
+ IdentifierInfo *KeyIdents[] = {
+ &Ctx.Idents.get("initWithObjects"),
+ &Ctx.Idents.get("count")
+ };
+ Sel = Ctx.Selectors.getSelector(2, KeyIdents);
+ break;
+ }
}
return (NSArraySelectors[MK] = Sel);
}
@@ -204,6 +212,15 @@ Selector NSAPI::getNSDictionarySelector(
Sel = Ctx.Selectors.getSelector(2, KeyIdents);
break;
}
+ case NSDict_initWithObjectsForKeysCount: {
+ IdentifierInfo *KeyIdents[] = {
+ &Ctx.Idents.get("initWithObjects"),
+ &Ctx.Idents.get("forKeys"),
+ &Ctx.Idents.get("count")
+ };
+ Sel = Ctx.Selectors.getSelector(3, KeyIdents);
+ break;
+ }
}
return (NSDictionarySelectors[MK] = Sel);
}
OpenPOWER on IntegriCloud