summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/Transforms.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-07 18:40:29 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-07 18:40:29 +0000
commite80d4f228c8d0d42cd9a85d461f01d96c14f4137 (patch)
treef1844530f923dc0debbc78a73fa51190e7212b17 /clang/lib/ARCMigrate/Transforms.h
parentfed29142bad78baf6034e01d1843c16e89cdbc1a (diff)
downloadbcm5719-llvm-e80d4f228c8d0d42cd9a85d461f01d96c14f4137.tar.gz
bcm5719-llvm-e80d4f228c8d0d42cd9a85d461f01d96c14f4137.zip
[arcmt] In GC, change '__weak' -> '__unsafe_unretained' when applied
to objects of classes that don't support ARC weak llvm-svn: 143976
Diffstat (limited to 'clang/lib/ARCMigrate/Transforms.h')
-rw-r--r--clang/lib/ARCMigrate/Transforms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/Transforms.h b/clang/lib/ARCMigrate/Transforms.h
index 3f1e737e23e..7960a7df2e2 100644
--- a/clang/lib/ARCMigrate/Transforms.h
+++ b/clang/lib/ARCMigrate/Transforms.h
@@ -137,7 +137,8 @@ public:
//===----------------------------------------------------------------------===//
/// \brief Determine whether we can add weak to the given type.
-bool canApplyWeak(ASTContext &Ctx, QualType type);
+bool canApplyWeak(ASTContext &Ctx, QualType type,
+ bool AllowOnUnknownClass = false);
/// \brief 'Loc' is the end of a statement range. This returns the location
/// immediately after the semicolon following the statement.
OpenPOWER on IntegriCloud