summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/Transforms.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-28 02:04:36 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-28 02:04:36 +0000
commiteca1f36a54dd9dcc5d44d324b79fab599edb3d18 (patch)
tree568031b60092c4aa5f5990b070553ce0d947f0b8 /clang/lib/ARCMigrate/Transforms.h
parenta0d652e71ba9905d754f6037490f231aa4151935 (diff)
downloadbcm5719-llvm-eca1f36a54dd9dcc5d44d324b79fab599edb3d18.tar.gz
bcm5719-llvm-eca1f36a54dd9dcc5d44d324b79fab599edb3d18.zip
[arcmt] Integrate GC __weak into property attributes even when we don't have
the implementation. llvm-svn: 145224
Diffstat (limited to 'clang/lib/ARCMigrate/Transforms.h')
-rw-r--r--clang/lib/ARCMigrate/Transforms.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/Transforms.h b/clang/lib/ARCMigrate/Transforms.h
index 8c09a4757c5..84912bcd26f 100644
--- a/clang/lib/ARCMigrate/Transforms.h
+++ b/clang/lib/ARCMigrate/Transforms.h
@@ -113,8 +113,12 @@ public:
}
bool isGCOwnedNonObjC(QualType T);
+ bool removePropertyAttribute(StringRef fromAttr, SourceLocation atLoc) {
+ return rewritePropertyAttribute(fromAttr, StringRef(), atLoc);
+ }
bool rewritePropertyAttribute(StringRef fromAttr, StringRef toAttr,
SourceLocation atLoc);
+ bool addPropertyAttribute(StringRef attr, SourceLocation atLoc);
void traverse(TranslationUnitDecl *TU);
OpenPOWER on IntegriCloud