r194627 - [objcmt] If the frontend option is frontend::MigrateSource then we don't need to create
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Nov 13 15:38:17 PST 2013
Author: akirtzidis
Date: Wed Nov 13 17:38:17 2013
New Revision: 194627
URL: http://llvm.org/viewvc/llvm-project?rev=194627&view=rev
Log:
[objcmt] If the frontend option is frontend::MigrateSource then we don't need to create
the arcmt wrappers.
Modified:
cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp
Modified: cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp?rev=194627&r1=194626&r2=194627&view=diff
==============================================================================
--- cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp (original)
+++ cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp Wed Nov 13 17:38:17 2013
@@ -141,27 +141,29 @@ static FrontendAction *CreateFrontendAct
#endif
#ifdef CLANG_ENABLE_ARCMT
- // Potentially wrap the base FE action in an ARC Migrate Tool action.
- switch (FEOpts.ARCMTAction) {
- case FrontendOptions::ARCMT_None:
- break;
- case FrontendOptions::ARCMT_Check:
- Act = new arcmt::CheckAction(Act);
- break;
- case FrontendOptions::ARCMT_Modify:
- Act = new arcmt::ModifyAction(Act);
- break;
- case FrontendOptions::ARCMT_Migrate:
- Act = new arcmt::MigrateAction(Act,
- FEOpts.MTMigrateDir,
- FEOpts.ARCMTMigrateReportOut,
- FEOpts.ARCMTMigrateEmitARCErrors);
- break;
- }
+ if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource) {
+ // Potentially wrap the base FE action in an ARC Migrate Tool action.
+ switch (FEOpts.ARCMTAction) {
+ case FrontendOptions::ARCMT_None:
+ break;
+ case FrontendOptions::ARCMT_Check:
+ Act = new arcmt::CheckAction(Act);
+ break;
+ case FrontendOptions::ARCMT_Modify:
+ Act = new arcmt::ModifyAction(Act);
+ break;
+ case FrontendOptions::ARCMT_Migrate:
+ Act = new arcmt::MigrateAction(Act,
+ FEOpts.MTMigrateDir,
+ FEOpts.ARCMTMigrateReportOut,
+ FEOpts.ARCMTMigrateEmitARCErrors);
+ break;
+ }
- if (FEOpts.ObjCMTAction != FrontendOptions::ObjCMT_None) {
- Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
- FEOpts.ObjCMTAction);
+ if (FEOpts.ObjCMTAction != FrontendOptions::ObjCMT_None) {
+ Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
+ FEOpts.ObjCMTAction);
+ }
}
#endif
More information about the cfe-commits
mailing list