diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-04 17:29:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-04 17:29:57 +0000 |
commit | 31c215e62031b14e85c2f695c261817c044b465b (patch) | |
tree | 71cb48591e69abe2d5fb1b6d09c6af61012c1367 /lib/Analysis/CFRefCount.cpp | |
parent | 1308f573d7a9840713879deb3c02b219197cd827 (diff) |
Rename attributes:
'objc_ownership_cfretain' -> 'cf_ownership_retain'
'objc_ownership_cfrelease' -> 'cf_ownership_release'
Motivation: Core Foundation objects can be used in isolation from Objective-C,
and this forces users to reason about the separate semantics of CF objects. More
Sema support pending.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 711127b79d..f4b4b11853 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1107,11 +1107,11 @@ RetainSummaryManager::updateSummaryArgEffFromAnnotations(RetainSummary &Summ, const ParmVarDecl *PD){ if (PD->getAttr<ObjCOwnershipRetainAttr>()) Summ.setArgEffect(AF, i, IncRefMsg); - else if (PD->getAttr<ObjCOwnershipCFRetainAttr>()) + else if (PD->getAttr<CFOwnershipRetainAttr>()) Summ.setArgEffect(AF, i, IncRef); else if (PD->getAttr<ObjCOwnershipReleaseAttr>()) Summ.setArgEffect(AF, i, DecRefMsg); - else if (PD->getAttr<ObjCOwnershipCFReleaseAttr>()) + else if (PD->getAttr<CFOwnershipReleaseAttr>()) Summ.setArgEffect(AF, i, DecRef); else if (PD->getAttr<ObjCOwnershipMakeCollectableAttr>()) Summ.setArgEffect(AF, i, MakeCollectable); |