Objective-C migrator: some cleanup.

Expose static type of init/alloc/retain with
instance type as well. Ad-hoc cases are coming
next.

llvm-svn: 187068
This commit is contained in:
Fariborz Jahanian
2013-07-24 19:18:37 +00:00
parent a9df759af6
commit 267bae3ad6
3 changed files with 20 additions and 18 deletions

View File

@@ -471,6 +471,9 @@ ObjCInstanceTypeFamily Selector::getInstTypeMethodFamily(Selector sel) {
case 'i':
if (startsWithWord(name, "init")) return OIT_MemManage;
break;
case 'r':
if (startsWithWord(name, "retain")) return OIT_MemManage;
break;
case 's':
if (startsWithWord(name, "string")) return OIT_NSString;
else