forked from OSchip/llvm-project
[objcmt] If the frontend option is frontend::MigrateSource then we don't need to create
the arcmt wrappers. llvm-svn: 194627
This commit is contained in:
parent
81d871dee3
commit
7a2645f91f
|
@ -141,27 +141,29 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
|
|||
#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
|
||||
|
||||
|
|
Loading…
Reference in New Issue