diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-09-17 19:14:29 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-09-17 19:14:29 +0000 |
commit | 85230d50f2ebe14b4c7cffb2c4d213398baed1cf (patch) | |
tree | 1d4f10a5f147e9815c8e6b4392c29626f830131f /clang/lib/ARCMigrate/ARCMT.cpp | |
parent | 30c27d6aceae16cfd22b8de8fb2a693ccdd1ad45 (diff) | |
download | bcm5719-llvm-85230d50f2ebe14b4c7cffb2c4d213398baed1cf.tar.gz bcm5719-llvm-85230d50f2ebe14b4c7cffb2c4d213398baed1cf.zip |
[arcmt] Don't try to handle files that are already ARC'ified, this is not possible currently.
rdar://14461559
llvm-svn: 190880
Diffstat (limited to 'clang/lib/ARCMigrate/ARCMT.cpp')
-rw-r--r-- | clang/lib/ARCMigrate/ARCMT.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/lib/ARCMigrate/ARCMT.cpp b/clang/lib/ARCMigrate/ARCMT.cpp index 477e327071a..3e429beded5 100644 --- a/clang/lib/ARCMigrate/ARCMT.cpp +++ b/clang/lib/ARCMigrate/ARCMT.cpp @@ -270,8 +270,6 @@ bool arcmt::checkForManualIssues(CompilerInvocation &origCI, return true; } - bool hadARCErrors = capturedDiags.hasErrors(); - // Don't filter diagnostics anymore. Diags->setClient(DiagClient, /*ShouldOwnClient=*/false); @@ -323,15 +321,6 @@ bool arcmt::checkForManualIssues(CompilerInvocation &origCI, DiagClient->EndSourceFile(); errRec.FinishCapture(); - if (hadARCErrors) { - // If we are migrating code that gets the '-fobjc-arc' flag, make sure - // to remove it so that we don't get errors from normal compilation. - origCI.getLangOpts()->ObjCAutoRefCount = false; - // Disable auto-synthesize to avoid "@synthesize of 'weak' property is only - // allowed in ARC" errors. - origCI.getLangOpts()->ObjCDefaultSynthProperties = false; - } - return capturedDiags.hasErrors() || testAct.hasReportedErrors(); } @@ -381,14 +370,6 @@ static bool applyTransforms(CompilerInvocation &origCI, origCI.getLangOpts()->ObjCAutoRefCount = true; return migration.getRemapper().overwriteOriginal(*Diags); } else { - if (migration.HadARCErrors) { - // If we are migrating code that gets the '-fobjc-arc' flag, make sure - // to remove it so that we don't get errors from normal compilation. - origCI.getLangOpts()->ObjCAutoRefCount = false; - // Disable auto-synthesize to avoid "@synthesize of 'weak' property is only - // allowed in ARC" errors. - origCI.getLangOpts()->ObjCDefaultSynthProperties = false; - } return migration.getRemapper().flushToDisk(outputDir, *Diags); } } |