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,6 +141,7 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CLANG_ENABLE_ARCMT
|
#ifdef CLANG_ENABLE_ARCMT
|
||||||
|
if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource) {
|
||||||
// Potentially wrap the base FE action in an ARC Migrate Tool action.
|
// Potentially wrap the base FE action in an ARC Migrate Tool action.
|
||||||
switch (FEOpts.ARCMTAction) {
|
switch (FEOpts.ARCMTAction) {
|
||||||
case FrontendOptions::ARCMT_None:
|
case FrontendOptions::ARCMT_None:
|
||||||
|
@ -163,6 +164,7 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
|
||||||
Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
|
Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
|
||||||
FEOpts.ObjCMTAction);
|
FEOpts.ObjCMTAction);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If there are any AST files to merge, create a frontend action
|
// If there are any AST files to merge, create a frontend action
|
||||||
|
|
Loading…
Reference in New Issue