rename -fprint-source-range-info -> -fdiagnostics-print-source-range-info.

Temporarily accept both of them, I'll rip out the old one after awhile.

llvm-svn: 69662
This commit is contained in:
Chris Lattner 2009-04-21 05:34:31 +00:00
parent 1f02e054a9
commit 6968641ac5
3 changed files with 9 additions and 2 deletions

View File

@ -365,6 +365,7 @@ OPTION("-fcreate-profile", fcreate_profile, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-fdebug-pass-arguments", fdebug_pass_arguments, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-fdebug-pass-structure", fdebug_pass_structure, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-fdiagnostics-fixit-info", fdiagnostics_fixit_info, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-fdiagnostics-print-source-range-info", fdiagnostics_print_source_range_info, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-fdiagnostics-show-option", fdiagnostics_show_option, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-fdollars-in-identifiers", fdollars_in_identifiers, Flag, f_Group, INVALID, "", 0, 0, 0)
OPTION("-feliminate-unused-debug-symbols", feliminate_unused_debug_symbols, Flag, f_Group, INVALID, "", 0, 0, 0)

View File

@ -459,6 +459,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// FIXME: Should we remove this?
Args.AddLastArg(CmdArgs, options::OPT_fobjc_nonfragile_abi);
Args.AddLastArg(CmdArgs, options::OPT_fprint_source_range_info);
Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_print_source_range_info);
Args.AddLastArg(CmdArgs, options::OPT_ftime_report);
Args.AddLastArg(CmdArgs, options::OPT_ftrapv);
Args.AddLastArg(CmdArgs, options::OPT_fvisibility_EQ);

View File

@ -305,8 +305,13 @@ NoDiagnosticsFixIt("fno-diagnostics-fixit-info",
" diagnostics"));
static llvm::cl::opt<bool>
PrintSourceRangeInfo("fprint-source-range-info",
llvm::cl::desc("Print source range spans in numeric form"));
PrintSourceRangeInfo("fdiagnostics-print-source-range-info",
llvm::cl::desc("Print source range spans in numeric form"));
static llvm::cl::alias
PrintSourceRangeInfo2("fprint-source-range-info",
llvm::cl::desc("Print source range spans in numeric form [deprecated]"),
llvm::cl::aliasopt(PrintSourceRangeInfo));
static llvm::cl::opt<bool>
PrintDiagnosticOption("fdiagnostics-show-option",