summaryrefslogtreecommitdiff
path: root/clang/lib/Basic/IdentifierTable.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-07-24 19:18:37 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-07-24 19:18:37 +0000
commit267bae3ad68aa2c1e8f2e1138efc17a4ad54a601 (patch)
tree9b6da80f9e7234ce20e40b1b913fdb0a300cf78d /clang/lib/Basic/IdentifierTable.cpp
parenta9df759af6170dff3f1c1a48d51620a03bed8459 (diff)
downloadllvm-267bae3ad68aa2c1e8f2e1138efc17a4ad54a601.tar.gz
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
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r--clang/lib/Basic/IdentifierTable.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp
index fa021f0501e6..96d9e56b6c3a 100644
--- a/clang/lib/Basic/IdentifierTable.cpp
+++ b/clang/lib/Basic/IdentifierTable.cpp
@@ -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