[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:
Argyrios Kyrtzidis 2013-11-13 23:38:17 +00:00
parent 81d871dee3
commit 7a2645f91f
1 changed files with 22 additions and 20 deletions

View File

@ -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