From 69325d5b7cfecf1b3128745efc33612aedf1b8b4 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 9 Jul 2011 20:00:58 +0000 Subject: [arcmt] Introduce new '-ccc-arcmt-migrate ' ARC migration driver option. This is a new mode of migration, where we avoid modifying the original files but we emit temporary files instead. will be used to keep migration process metadata. Currently the temporary files that are produced are put in the system's temp directory but we can put them in the if is necessary. Also introduce new ARC migration functions in libclang whose only purpose, currently, is to accept and provide pairs of original file/transformed file to map from the originals to the files after transformations are applied. Finally introduce the c-arcmt-test utility that exercises the new libclang functions, update arcmt-test, and add tests for the whole process. rdar://9735086. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134844 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/FrontendTool/ExecuteCompilerInvocation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/FrontendTool/ExecuteCompilerInvocation.cpp') diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 45095997dc..f2db3ae741 100644 --- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -97,7 +97,10 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { Act = new arcmt::CheckAction(Act); break; case FrontendOptions::ARCMT_Modify: - Act = new arcmt::TransformationAction(Act); + Act = new arcmt::ModifyAction(Act); + break; + case FrontendOptions::ARCMT_Migrate: + Act = new arcmt::MigrateAction(Act, CI.getFrontendOpts().ARCMTMigrateDir); break; } -- cgit v1.2.3-18-g5258