summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/TransGCAttrs.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-07 18:40:32 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-07 18:40:32 +0000
commit0dd98a4c518eb93a7f5ddbd9b2f0ca76d99914e8 (patch)
tree331f16f096c57d453b13345108d32e9d095ff22b /clang/lib/ARCMigrate/TransGCAttrs.cpp
parent8b626ba6debca8648eb2f6a3cc679cc12597c9c9 (diff)
downloadbcm5719-llvm-0dd98a4c518eb93a7f5ddbd9b2f0ca76d99914e8.tar.gz
bcm5719-llvm-0dd98a4c518eb93a7f5ddbd9b2f0ca76d99914e8.zip
[arcmt] Map property decls to their GC attributes.
llvm-svn: 143978
Diffstat (limited to 'clang/lib/ARCMigrate/TransGCAttrs.cpp')
-rw-r--r--clang/lib/ARCMigrate/TransGCAttrs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/TransGCAttrs.cpp b/clang/lib/ARCMigrate/TransGCAttrs.cpp
index 94eb8781dfe..70157aba3d6 100644
--- a/clang/lib/ARCMigrate/TransGCAttrs.cpp
+++ b/clang/lib/ARCMigrate/TransGCAttrs.cpp
@@ -108,6 +108,10 @@ public:
Attr.ModifiedType = TL.getModifiedLoc().getType();
Attr.Dcl = D;
Attr.FullyMigratable = FullyMigratable;
+
+ if (ObjCPropertyDecl *PD = dyn_cast_or_null<ObjCPropertyDecl>(D))
+ MigrateCtx.PropGCAttrs[PD] = MigrateCtx.GCAttrs.size() - 1;
+
return true;
}
OpenPOWER on IntegriCloud