diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-04 19:10:19 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-04 19:10:19 +0000 |
commit | 75494ffb4ed3964fa22fb9ab15fddecedbc9fe10 (patch) | |
tree | 4f2de7567465a1fc06847d92d0d53ae84714b033 /lib/Analysis/CFRefCount.cpp | |
parent | 305d2d2b61bb49bdefdeb0cfbf99a9911b466918 (diff) |
Rename attributes 'objc_ownership...' to 'ns_ownership...'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index f4b4b11853..54843d534a 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1105,15 +1105,15 @@ void RetainSummaryManager::updateSummaryArgEffFromAnnotations(RetainSummary &Summ, unsigned i, const ParmVarDecl *PD){ - if (PD->getAttr<ObjCOwnershipRetainAttr>()) + if (PD->getAttr<NSOwnershipRetainAttr>()) Summ.setArgEffect(AF, i, IncRefMsg); else if (PD->getAttr<CFOwnershipRetainAttr>()) Summ.setArgEffect(AF, i, IncRef); - else if (PD->getAttr<ObjCOwnershipReleaseAttr>()) + else if (PD->getAttr<NSOwnershipReleaseAttr>()) Summ.setArgEffect(AF, i, DecRefMsg); else if (PD->getAttr<CFOwnershipReleaseAttr>()) Summ.setArgEffect(AF, i, DecRef); - else if (PD->getAttr<ObjCOwnershipMakeCollectableAttr>()) + else if (PD->getAttr<NSOwnershipMakeCollectableAttr>()) Summ.setArgEffect(AF, i, MakeCollectable); } @@ -1125,7 +1125,7 @@ RetainSummaryManager::updateSummaryFromAnnotations(RetainSummary &Summ, // Determine if there is a special return effect for this method. if (isTrackedObjCObjectType(FD->getResultType())) { - if (FD->getAttr<ObjCOwnershipReturnsAttr>()) { + if (FD->getAttr<NSOwnershipReturnsAttr>()) { Summ.setRetEffect(isGCEnabled() ? RetEffect::MakeGCNotOwned() : RetEffect::MakeOwned(RetEffect::ObjC, true)); @@ -1147,7 +1147,7 @@ RetainSummaryManager::updateSummaryFromAnnotations(RetainSummary &Summ, // Determine if there is a special return effect for this method. if (isTrackedObjCObjectType(MD->getResultType())) { - if (MD->getAttr<ObjCOwnershipReturnsAttr>()) { + if (MD->getAttr<NSOwnershipReturnsAttr>()) { Summ.setRetEffect(isGCEnabled() ? RetEffect::MakeGCNotOwned() : RetEffect::MakeOwned(RetEffect::ObjC, true)); @@ -1161,9 +1161,9 @@ RetainSummaryManager::updateSummaryFromAnnotations(RetainSummary &Summ, updateSummaryArgEffFromAnnotations(Summ, i, *I); // Determine any effects on the receiver. - if (MD->getAttr<ObjCOwnershipRetainAttr>()) + if (MD->getAttr<NSOwnershipRetainAttr>()) Summ.setReceiverEffect(IncRefMsg); - else if (MD->getAttr<ObjCOwnershipReleaseAttr>()) + else if (MD->getAttr<NSOwnershipReleaseAttr>()) Summ.setReceiverEffect(DecRefMsg); } |