summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-08-12 20:47:08 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-08-12 20:47:08 +0000
commit70a315c3630fd19a0ef27a8f7d63f6599c8a3f6b (patch)
tree902143ce872a13aeb26a525afc34b4d95a7e7573 /clang/lib
parent26794fe0965f0ef416d7dbd7448ba5bfe8697331 (diff)
downloadbcm5719-llvm-70a315c3630fd19a0ef27a8f7d63f6599c8a3f6b.tar.gz
bcm5719-llvm-70a315c3630fd19a0ef27a8f7d63f6599c8a3f6b.zip
metadata generated by the compiler does not include the weak
attribute of a property. patch by Remy Demarest fixes it. llvm-svn: 137509
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index cd7d5080e8f..7acc22abcc2 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -4078,6 +4078,7 @@ void ASTContext::getObjCEncodingForPropertyDecl(const ObjCPropertyDecl *PD,
case ObjCPropertyDecl::Assign: break;
case ObjCPropertyDecl::Copy: S += ",C"; break;
case ObjCPropertyDecl::Retain: S += ",&"; break;
+ case ObjCPropertyDecl::Weak: S += ",W"; break;
}
}
OpenPOWER on IntegriCloud