Added 'atomic' for objc properties.

llvm-svn: 132879
This commit is contained in:
Fariborz Jahanian 2011-06-11 17:37:19 +00:00
parent 938f40b5aa
commit 8086dfc7d4
1 changed files with 5 additions and 0 deletions

View File

@ -943,6 +943,11 @@ void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) {
Out << (first ? ' ' : ',') << "nonatomic";
first = false;
}
if (PDecl->getPropertyAttributes() &
ObjCPropertyDecl::OBJC_PR_atomic) {
Out << (first ? ' ' : ',') << "atomic";
first = false;
}
Out << " )";
}
Out << ' ' << PDecl->getType().getAsString(Policy) << ' ' << PDecl;