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
|
#endif
|
||||||
|
|
||||||
#ifdef CLANG_ENABLE_ARCMT
|
#ifdef CLANG_ENABLE_ARCMT
|
||||||
// Potentially wrap the base FE action in an ARC Migrate Tool action.
|
if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource) {
|
||||||
switch (FEOpts.ARCMTAction) {
|
// Potentially wrap the base FE action in an ARC Migrate Tool action.
|
||||||
case FrontendOptions::ARCMT_None:
|
switch (FEOpts.ARCMTAction) {
|
||||||
break;
|
case FrontendOptions::ARCMT_None:
|
||||||
case FrontendOptions::ARCMT_Check:
|
break;
|
||||||
Act = new arcmt::CheckAction(Act);
|
case FrontendOptions::ARCMT_Check:
|
||||||
break;
|
Act = new arcmt::CheckAction(Act);
|
||||||
case FrontendOptions::ARCMT_Modify:
|
break;
|
||||||
Act = new arcmt::ModifyAction(Act);
|
case FrontendOptions::ARCMT_Modify:
|
||||||
break;
|
Act = new arcmt::ModifyAction(Act);
|
||||||
case FrontendOptions::ARCMT_Migrate:
|
break;
|
||||||
Act = new arcmt::MigrateAction(Act,
|
case FrontendOptions::ARCMT_Migrate:
|
||||||
FEOpts.MTMigrateDir,
|
Act = new arcmt::MigrateAction(Act,
|
||||||
FEOpts.ARCMTMigrateReportOut,
|
FEOpts.MTMigrateDir,
|
||||||
FEOpts.ARCMTMigrateEmitARCErrors);
|
FEOpts.ARCMTMigrateReportOut,
|
||||||
break;
|
FEOpts.ARCMTMigrateEmitARCErrors);
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (FEOpts.ObjCMTAction != FrontendOptions::ObjCMT_None) {
|
if (FEOpts.ObjCMTAction != FrontendOptions::ObjCMT_None) {
|
||||||
Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
|
Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
|
||||||
FEOpts.ObjCMTAction);
|
FEOpts.ObjCMTAction);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue