[cfe-commits] r134591 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Tools.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Jul 6 21:00:39 PDT 2011
Author: akirtzidis
Date: Wed Jul 6 23:00:39 2011
New Revision: 134591
URL: http://llvm.org/viewvc/llvm-project?rev=134591&view=rev
Log:
[arcmt] Add -ccc-arcmt-check/-ccc-arcmt-modify driver option aliases.
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=134591&r1=134590&r2=134591&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Wed Jul 6 23:00:39 2011
@@ -112,10 +112,12 @@
def ccc_print_bindings : Flag<"-ccc-print-bindings">, CCCDebugOpt,
HelpText<"Show bindings of tools to actions">;
-def ccc_arrmt_check : Flag<"-ccc-arrmt-check">, CCCDriverOpt,
+def ccc_arcmt_check : Flag<"-ccc-arcmt-check">, CCCDriverOpt,
HelpText<"Check for ARC migration issues that need manual handling">;
-def ccc_arrmt_modify : Flag<"-ccc-arrmt-modify">, CCCDriverOpt,
+def ccc_arcmt_modify : Flag<"-ccc-arcmt-modify">, CCCDriverOpt,
HelpText<"Apply modifications to files to conform to ARC">;
+def ccc_arrmt_check : Flag<"-ccc-arrmt-check">, Alias<ccc_arcmt_check>;
+def ccc_arrmt_modify : Flag<"-ccc-arrmt-modify">, Alias<ccc_arcmt_modify>;
// Make sure all other -ccc- options are rejected.
def ccc_ : Joined<"-ccc-">, Group<ccc_Group>, Flags<[Unsupported]>;
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=134591&r1=134590&r2=134591&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Jul 6 23:00:39 2011
@@ -1422,15 +1422,15 @@
Args.AddLastArg(CmdArgs, options::OPT_working_directory);
if (!Args.hasArg(options::OPT_fno_objc_arc)) {
- if (const Arg *A = Args.getLastArg(options::OPT_ccc_arrmt_check,
- options::OPT_ccc_arrmt_modify)) {
+ if (const Arg *A = Args.getLastArg(options::OPT_ccc_arcmt_check,
+ options::OPT_ccc_arcmt_modify)) {
switch (A->getOption().getID()) {
default:
llvm_unreachable("missed a case");
- case options::OPT_ccc_arrmt_check:
+ case options::OPT_ccc_arcmt_check:
CmdArgs.push_back("-arcmt-check");
break;
- case options::OPT_ccc_arrmt_modify:
+ case options::OPT_ccc_arcmt_modify:
CmdArgs.push_back("-arcmt-modify");
break;
}
More information about the cfe-commits
mailing list