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 | 0836a199318c4f5835a305e1290f842f9e0576f9 (patch) | |
tree | 787d39f088ab9c5d428e7768d1c2b91ba1ed7187 /clang/lib/Analysis/CFRefCount.cpp | |
parent | a4a81c0ac770274472d28e9cbf588b13a3a2eb39 (diff) | |
download | bcm5719-llvm-0836a199318c4f5835a305e1290f842f9e0576f9.tar.gz bcm5719-llvm-0836a199318c4f5835a305e1290f842f9e0576f9.zip |
Rename attributes 'objc_ownership...' to 'ns_ownership...'.
llvm-svn: 70897
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index f4b4b118531..54843d534a4 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/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); } |