summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/ARCMT.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-01-26 00:08:04 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-01-26 00:08:04 +0000
commit0c859d67ef826d84fc89b6dcbefdfc3bfa234f48 (patch)
tree0c15752a1f7ad21135ad16db39ea2870cacd79cf /clang/lib/ARCMigrate/ARCMT.cpp
parent154aabc0c47df7adb88ec96a064434df5da47882 (diff)
downloadbcm5719-llvm-0c859d67ef826d84fc89b6dcbefdfc3bfa234f48.tar.gz
bcm5719-llvm-0c859d67ef826d84fc89b6dcbefdfc3bfa234f48.zip
arc migrator: Added an option to the migrator
unused yet. llvm-svn: 149001
Diffstat (limited to 'clang/lib/ARCMigrate/ARCMT.cpp')
-rw-r--r--clang/lib/ARCMigrate/ARCMT.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/ARCMT.cpp b/clang/lib/ARCMigrate/ARCMT.cpp
index 09752f0d612..cd4835ef391 100644
--- a/clang/lib/ARCMigrate/ARCMT.cpp
+++ b/clang/lib/ARCMigrate/ARCMT.cpp
@@ -230,6 +230,7 @@ bool arcmt::checkForManualIssues(CompilerInvocation &origCI,
LangOptions::GCMode OrigGCMode = origCI.getLangOpts()->getGC();
bool NoNSAllocReallocError = origCI.getMigratorOpts().NoNSAllocReallocError;
+ bool NoFinalizeRemoval = origCI.getMigratorOpts().NoFinalizeRemoval;
std::vector<TransformFn> transforms = arcmt::getAllTransformations(OrigGCMode);
assert(!transforms.empty());
@@ -294,6 +295,7 @@ bool arcmt::checkForManualIssues(CompilerInvocation &origCI,
TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
MigrationPass pass(Ctx, OrigGCMode, Unit->getSema(), testAct, ARCMTMacroLocs);
pass.setNSAllocReallocError(NoNSAllocReallocError);
+ pass.setNoFinalizeRemoval(NoFinalizeRemoval);
for (unsigned i=0, e = transforms.size(); i != e; ++i)
transforms[i](pass);
OpenPOWER on IntegriCloud