ObjectiveC migrator. This patch infers readonly properties for no-parameter 
instance methods returning non-void. This will be quite noisy. So, it is 
placed under a new migrator flag -objcmt-migrate-readonly-property.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189537 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 2f6d4b2..7ba7103 100644
--- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -164,7 +164,8 @@
     Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir,
                    FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Literals,
                    FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Subscripting,
-                   FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Property);
+                   FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Property,
+                   FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_ReadonlyProperty);
   }
 #endif