summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-01-26 20:57:58 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-01-26 20:57:58 +0000
commitbbdfad581fa300fa0d162d968ec14de3c95fc760 (patch)
treec468af2a59e7ce91a89022b916319c2147b60ac9 /tools
parente8c904ff343f440e213b88e6963f5ebfbec7ae60 (diff)
objc-arc: introduce -no-finalize-removal which in gc mode,
leaves "finalize' behind and in arc mode, does not include it. This allows the migrated source to be compiled in both gc and arc mode. // rdar://10532441 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/arcmt-test/arcmt-test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp
index 9523ebcba0..6efb707950 100644
--- a/tools/arcmt-test/arcmt-test.cpp
+++ b/tools/arcmt-test/arcmt-test.cpp
@@ -173,7 +173,8 @@ static bool performTransformations(StringRef resourcesPath,
MigrationProcess migration(origCI, DiagClient);
std::vector<TransformFn>
- transforms = arcmt::getAllTransformations(origCI.getLangOpts()->getGC());
+ transforms = arcmt::getAllTransformations(origCI.getLangOpts()->getGC(),
+ origCI.getMigratorOpts().NoFinalizeRemoval);
assert(!transforms.empty());
llvm::OwningPtr<PrintTransforms> transformPrinter;